Hi,
possible with small y?

Thomas Meyer

PS: Sorry, for sending twice. Wrong button.

Am 10.02.2012 19:11, schrieb Charley Bay:
This *has* to work, but doesn't:

    // ...returns invalid QDate...
    QDate my_date = QDate::fromString("01/18/12", "MM/dd/YY" );

Why doesn't this work?

I also tried:

    // ...returns invalid QDate...
    QDate my_date = QDate::fromString("01/18/12", "MM'/'dd'/'YY" );

I don't get to control the format (I'm "reading-in" logs that were written by another program).

The documentation suggests this should work, right?

--charley



_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to