Well in this case just format the date in a specific way and then use the same format for parsing it back.

I.e. QDate::toString() and QDate::fromString() with the same format.

Cheers,
_