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

Charley Bay charleyb123 at gmail.com
Fri Feb 10 19:56:43 CET 2012


>
> 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? <snip>,
>
> Thomas Meyer respondeth:

> Hi,
> possible with small y?
>

That's it! <embarrass>

Sorry to bother everybody, it was part of a much larger expression, and
I've been staring at it all morning!

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


More information about the Interest mailing list