Hi,
I have to calculate how many day are between two date events, for example:
How many dates are from Jan/2008 to Jul/2009.
Is there any help from Qt ?
Do you know how I have to implement ?
Thanks
Alex
Hi,
I have to calculate how many day are between two date events, for example:
How many dates are from Jan/2008 to Jul/2009.
Is there any help from Qt ?
Do you know how I have to implement ?
Thanks
Alex
ups, sorry, ok, there is a function called "daysTo()" from QDate, I think it will help me...
How about:
QDate date1 = QDate::fromString( "Jan 2008", "MMM yyyy");
QDate date2 = QDate::fromString( "Jul 2009", "MMM yyyy");
int numberOfDays = date1.daysTo( date2 );
The above gives the number of days between those two dates.
HTH
McToo
It's always a long day, you can't fit 86400 into a short!
Beat me to it!
It's always a long day, you can't fit 86400 into a short!
Bookmarks