Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.3.3, 4.8.5, 5.1.0
-
None
-
Windows 7 Professional (Windows NT 6.1)
Visual Studio 2005, Behavior is platform independent
-
a755c2e52126bea850a04487a9a7d446b03e892a
Description
Try the following code. The year will not be displayed.
While date can handle years till 11754508 (Dec 13th) the range of QDate::fromString ends with year 7999 (Dec 31st).
#include <QString> #include <QDate> void main() { const QDate date = QDate::fromString("8000-01-01", "yyyy-MM-dd"); qDebug("Date is: %s", date.toString("yyyy-MM-dd").toLatin1().constData()); }