[Interest] QDate::fromString() parse error?

Thomas Meyer public at meyer-thomas.com
Fri Feb 10 19:20:00 CET 2012


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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120210/914a2450/attachment.html>


More information about the Interest mailing list