[Solved]Number of months between two Dates
-
Hello,
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.
thanks -
Just found this:
http://qt-project.org/forums/viewthread/9812QTimeSpan looks like it will do what you need.