Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cmonth
Message
From
23/06/1999 12:49:47
 
 
To
23/06/1999 11:59:43
Dovi Gilberd
Dovtware Consulting Inc
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Cmonth
Miscellaneous
Thread ID:
00233028
Message ID:
00233056
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform