Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Year 2018 to 1918 Date Math
Message
De
15/03/2005 13:40:58
 
 
À
15/03/2005 13:32:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
00996023
Vues:
23
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)
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform