Hi!
I am struggling right now with the conversion of a string to a date, but I am not succeeding. Could someone help?
My string is in the following format: .
After compiling, qDebug prints an empty QDate ()
I have the following code:
strDate1 = Sa Feb 22 2014;
strDate2
= QString::fromStdString(strDate1.
toStdString());
strDate.fromString(strDate2, "dd mmm ww yyyy");
QString strDate1, strDate2;
QDate strDate;
strDate1 = Sa Feb 22 2014;
strDate2 = QString::fromStdString(strDate1.toStdString());
strDate.fromString(strDate2, "dd mmm ww yyyy");
To copy to clipboard, switch view to plain text mode
Many thanks in advance
Bookmarks