Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i convert a COM DATE to a vfp Date var ?
Message
De
27/07/1999 18:22:18
 
 
À
27/07/1999 17:21:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00246874
Message ID:
00246904
Vues:
22
I'm not sure what that type looks like. Is it like 1011900 for {01/01/1900}? If so try this:

TEST.PRG:
PARAMETER i
mydate=PADL(i,8,'0')
mymonth=LEFT(mydate,2)
myday=SUBSTR(mydate,3,2)
myyear=RIGHT(mydate,4)
RETURN CTOD(mymonth+'/'+myday+'/'+myyear)

? TEST(1011900)
01/01/1900
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform