Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Year 2018 to 1918 Date Math
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Year 2018 to 1918 Date Math
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:
00995917
Views:
66
I just import a text file into a dbf, the text file contained Date of Birth fields, but only with two digit years. Whent the text field was converted to a date field, it put some dates out of wack with reality, for instance a dob that had 18 for the year, was converted to 2018. I'm trying to figure out a way to replace the DOB year portion with the correct value.

Something like:
update LOSIMPORT set dob=dob-100 years
I can't just subtract (100*365), because that just doesn't calulate the right number of days, I was wondering if someone knew a way to do this.

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform