How to get a initial date, end date in QCalendarWidget
-
Hi all,
I need to get the initial date, end date and concatenate them, how can I do this?
Thanks
-
What do you mean "initial date, end date"?
"concatenate them" - do you mean concatenate string representations of the dates or concatenate QDate classes? -
end date:
@
calendar->setMaximumDate(QDate(2006, 7, 3));
@
Initial date:
@
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.