Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of days in a month
Message
From
10/10/1997 00:35:17
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00053634
Message ID:
00054005
Views:
29
>>Is there a function to get the number of days in a month.
>>eg. the number of days in any month of any year.
>>
>>Thanks
>>Andrew
>
>* Let FoxPro do the work!
>* Subtract a Day from the Next Months First Day!
>* Leap Year taken care of!
>dWHEN= DATE()
>? DAY(CTOD(str(Month(dWHEN)+1)+"/01/"+Alltrim(SUBSTR(STR(Year(dWHEN)),7,4)))-1)
>
>Ed B

Be careful, because this depends on the SET DATE setting.

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform