Hi,

I have a QLineEdit in which the user can enter a date. Since the date field is birthday or anniversary it is highly possible that the user does not remember the year and therfore does not want to enter it.

After validating I want to convert the date into dd MMMM yyyy or dd MMMM format.

There are two problems here.

1. Date Format:

How to distinguish between 10 July 87, July 10 1987, 10 July 1987, 07-10-1987, 07-10-87,10-07-1987, 10-07-87 ..etc ? They are all valid dates. Just that they are entered in different format.

2. Without year:

User might enter 10 Jul, July 10, 10 July etc.. When I validate these dates, QDate will return invalid date and therefore I will not be able to convert it.

Is there a way by which I give user maximum flexibility and still be able to identify the date he entered and convert it to the long month format ?

Thanks a lot.