Solved find the date of next week monday with QDate
-
Anyone have of an idea of how to find the date of next week's monday using QDate?
-
@Babs
Use https://doc.qt.io/qt-5/qdate.html#dayOfWeek-1 to help you write it. -
@JonB it's not exactly what i know. I already can have the day of the week. Why i want to know is the precise date. For example if i want to get the date of next Monday it returns: 03/02/2020
-
@Babs
I don't understand. UseQDate::dayOfWeek()
to discover what day of week today is. Add the necessary number of days to advance to the next Monday. That's next Monday's date. What's the issue? I said "to help you write it", not thatQDate::dayOfWeek()
on its own tells you next Monday's date. -
@JonB i misunderstood you. Thank you