Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of days in a month
Message
 
 
To
07/10/1997 23:11:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00053634
Message ID:
00053996
Views:
31
>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
Edgar L. Bolton, B.S. B.B.A.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform