Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Julian to Gregorian
Message
De
01/06/2005 09:50:12
 
 
À
01/06/2005 09:35:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01018950
Message ID:
01018953
Vues:
37
>I have a numeric field that is actually a date. The format is YYYYDDD (ie,2000316). I want to convert this to MMDDYYYY format. What is the code for doing this?
ln_yyyyddd = 2000316
ld_year = INT(ln_yyyyddd / 1000)
ld_days = MOD(ln_yyyyddd, 1000)

? DATE(ld_year, 1, 1) + ld_days - 1
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform