Difficulties with QDateTime.
Hi!
I enter a date in this format : d/MM/yyyy
So, I just set up the date like this :
Code:
QDate date
= QDate::fromString(sList.
at(0)+"MM"+sList.
at(1)+"yyyy"+sList.
at(2),
"d'MM'yyyy");
But there is a problem when I want to compare dates :
Code:
if (date.toString("d'MM'yyyy") == finfo.lastModified().toString("d'MM'yyyy")) {
//Some code.
}
It doesn't enter into the if,
Re: Difficulties with QDateTime.
Re: Difficulties with QDateTime.
Also, if you want to compare dates, why don't you compare the dates?
Cheers,
_