gfernandes
16th May 2014, 13:56
Hi,
This might be easy, but I couldn't find a solution.
If I have the day of year example 365 and the year 2013. Is it possible to convert it to date format 31.12.2013 in Qt? I didn't find anything for conversion from day of year. I tried using
QDate date_test = QDate::fromString("2014365","yyyyddd"); But it is invalid as the documents say ddd format means abbreviated localized day name (e.g. 'Mon' to 'Sun'). Is there any other way I can go about it in Qt?
Thank you in advance.
This might be easy, but I couldn't find a solution.
If I have the day of year example 365 and the year 2013. Is it possible to convert it to date format 31.12.2013 in Qt? I didn't find anything for conversion from day of year. I tried using
QDate date_test = QDate::fromString("2014365","yyyyddd"); But it is invalid as the documents say ddd format means abbreviated localized day name (e.g. 'Mon' to 'Sun'). Is there any other way I can go about it in Qt?
Thank you in advance.