The QDate class helps in handling dates. The instance of the QDate class accesses the date from the system clock and displays the date, which includes the year, month, and day, using the Gregorian calendar. The following is the list of methods provided by the QDate class:
- currentDate(): This method returns the system date as a QDate instance.
- setDate(): This method sets the date based on the supplied year, month, and day.
- year(): This method returns the year from the specified QDate instance.
- month(): This method returns the month from the specified QDate instance.
- day(): This method returns the day from the specified QDate instance.
- dayOfWeek(): This method returns the day of the week from the specified QDate instance. ...