Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set century
Message
From
12/05/2005 10:45:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01013353
Message ID:
01013404
Views:
11
>Here is what I want:
>
>if the date is less than current date(), e.g. 1/1/05 it should be 1/1/2005

ROLLOVER only works for whole years. You would have to do your own coding. For example, subtract or add 100 years under certain conditions.

>
>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform