Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Year 2018 to 1918 Date Math
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Year 2018 to 1918 Date Math
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00995917
Message ID:
00995917
Vues:
67
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform