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
From
10/11/2000 12:27:53
 
 
To
10/11/2000 12:22:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00440276
Message ID:
00440281
Views:
15
>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?

Nope but try

** gets number of days in given month
ldDate = DATE() && or whatever
ldFirst = DATE(YEAR(ldDate), MONTH(ldDate), 1)
lnDaysInMonth = GOMONTH(ldFirst,1)-ldFirst
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform