Eleasar
11th February 2014, 12:48
I have QString keeps dates like 2014-11-23 06:55:59
I want to parse this QString to QDate and QTime.
I've tried
QDate myDate;
myDate = QDate::fromString(qStr,"yyyy-MM-dd HH:mm:ss");
When i debug the code, i see QString value correctly, but mydate has no value. How can i fix it?
I want to parse this QString to QDate and QTime.
I've tried
QDate myDate;
myDate = QDate::fromString(qStr,"yyyy-MM-dd HH:mm:ss");
When i debug the code, i see QString value correctly, but mydate has no value. How can i fix it?