Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First day of the month
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01411761
Message ID:
01411765
Views:
70
>I am trying to get the first day of the month, using the code below
>
>mAhead = CTOD( "01" + "/" + CMONTH(DATE()) + "/" + STR(YEAR(DATE())))
>
>= MESSAGEBOX( mAhead )
>
>But I am getting and empty messagebox
FirstDayOfMonth = mydate - day(myDate) + 1
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform