Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved]Number of months between two Dates
starFire last edited by
Is there any way to get the number of months between two Dates?
eg I have the date (QDate) 11/20/2013 and the date 01/16/2014 i want to know that the number of months to the second date is 2.
Is there any function or method?
I only could find daysTo but thats not what I need.
vezprog last edited by
Just found this:
QTimeSpan looks like it will do what you need.