>I don't understand
>if the year is 2004 i.e. 01/01/04 -> ????
>if the year is 2005 01/01/05 -> ????
>if the year is 2006 01/01/06 -> ????
>
Here is what I want:
if the date is less than current date(), e.g. 1/1/05 it should be 1/1/2005
if they type 7/1/05 (e.g. July), it should be 1/1/1905
If they type 7/1/43, it should be 7/1/1943
If they type 7/1/04, it should be 7/1/2004
I guess, I had to write a special code to make it work as I want.
>
>
>>Hi everybody,
>>
>>I want to be able to type two year digits in the date textbox and treat dates this way: if they less than current year, e.g. 01/01/05 treat them as 2005, otherwise, 1/1/43 treat as 1/1/1943. I could not make it to work, have to admit.
>>
>>I'm using VFP9.
>>
>>Can you please help me?
>>
>>Thanks a lot in advance.
If it's not broken, fix it until it is.
My Blog