Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of days per month
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00381955
Message ID:
00382059
Views:
19
>>Hi All,
>>
>>Is there a function to calculate number of days per month per
>>year. Need to figure if Feb is 29 or 28 days for instance.
>>
>>Thanks
>>
>
>
>Doron,
>
>ldDate = Date()
>
>lnDays = DAY(GOMONTH(ldDate,1) - DAY(GOMONTH(ldDate,1)))
>
>Craig's has 5 function calls, Mine has only 4.

How about:

GOMONTH(dDate,1) - dDate

The difference is the length of dDate's Month
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform