Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the number of days in a month
Message
 
To
08/10/1997 19:40:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00052998
Message ID:
00053813
Views:
25
>>>How can I get the number of days in a month.
>>
>>
>>Lpara date_ld
>>return GoMonth(date_ld,1)-date_ld
>
>It doesn't work. For example: January 31, any year. It gives you 28 (29 for leap years) instead of 31.
>
>Vlad


How about this one ?

? DAY(GoMonth(date_ld,1)-DAY(GoMonth(date_ld,1)))


Darrel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform