Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to get a initial date, end date in QCalendarWidget
david_aa last edited by
I need to get the initial date, end date and concatenate them, how can I do this?
andreyc last edited by
What do you mean "initial date, end date"?
"concatenate them" - do you mean concatenate string representations of the dates or concatenate QDate classes?
Jeroentjehome last edited by
calendar->setMaximumDate(QDate(2006, 7, 3));
QDate myStartDate(calendar->selectedDate ());
What do you want with the concatenate the dates?
Hope you are asking for initial date and end dates of QCalendarWIdget instance itself. You can look at the maximumDate and minimumDate() method. Both return QDate. You can QDate.toString() get the string and concanate them.