Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Year 2018 to 1918 Date Math
Message
From
15/03/2005 13:40:58
 
 
To
15/03/2005 13:32:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00995917
Message ID:
00996023
Views:
25
PMFJI, but your example failed also, when you change the year, because of the leap year problem. I tried to change the year to the year that was stated in the begining of the thread (2018), and the date came back empty. So it is not fool-proof.

>Sergey, the second is simpler,faster and it is the only solution;
>the first can fail:
>
>dob=DATE(2000,2,29)
>? DATE(YEAR(dob)-100, MONTH(dob), DAY(dob))
>? GOMONT(dob, -100*12)
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform