In this article we will see how we can get display format of the QDateTimeEdit. Display format property holds the format used to display the time/date of the date-time edit. By default we see date in format like 01-01-2000 although by setting display format we can make this date as 1 Jan 2020, it can be set with the help of
In order to do this we will use
displayFormat method with the QDateTimeEdit object.
Syntax : datetimeedit.displayFormat()
Argument : It takes no argument
Return : It returns string
Below is the implementation
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course