Converting Date Format
Solved
General and Desktop
-
@Vineela said in Converting Date Format:
QDate da=QDate::fromString(dd,"dd-MM-yyyy");
Shouldn't it be
QDate da=QDate::fromString(dd,"yyyy-MM-dd");
?
Your string is "2018-08-01" and not "01-08-2018"... -
@Vineela You can convert your date to whatever string you want.
http://doc.qt.io/qt-5/qdate.html#toString-2 -