Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cmonth
Message
De
23/06/1999 12:49:47
 
 
À
23/06/1999 11:59:43
Dovi Gilberd
Dovtware Consulting Inc
Miami, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Cmonth
Divers
Thread ID:
00233028
Message ID:
00233056
Vues:
26
>i have a date in this format 990601
>i used this expresion to get 06/01/99
>substr(view1.strtdate,3,2) + "/" + substr(view1.strtdate,5,2) + "/" + substr(view1.strtdate,1,2)
>
>what do i need to add to the expression to get June/01/99
>can anybody help me... i know that i need to use CMONTH() but i dont know how and where to place it

If your current date setting (SET DATE) is already in the M/D/Y format, then all you would need to do is:

dVar = substr(view1.strtdate,3,2) + "/" + substr(view1.strtdate,5,2) + "/" + substr(view1.strtdate,1,2)
cMon = CMONTH(CTOD(dVar))
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform