Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a function that returns the number of days in a
Message
 
 
To
10/11/2000 12:29:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00440276
Message ID:
00440285
Views:
11
>>>Is there a function that returns the number of days in a month?
>>>example...
>>>jan has 31 days
>>>days_in_a_month = (some_function,jan)
>>>?days_in_a_month
>>>31....any ideas?
>>
>>cMonth = "01"
>>cYear = "2000"
>>? day(gomonth(ctod(cmonth+"/01/"+cYear),1)-1)
>
>This is actually a Fox 2.6 solution which will work in VFP.
>Obviously, this assumes American dates.

You can get into trouble assuming a certain date format.
Previous
Reply
Map
View

Click here to load this message in the networking platform