Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the last day.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00566150
Message ID:
00566155
Views:
16
>Hello at alls.
>How can I get the last month day.?
>For example if I send to the program 01-20-2001
>The system should know that the last day month is 31.
>TIA
FUNCTION lastDay
LPARAMETERS pdDate

RETURN gomonth(date(year(pdDate), month(pdDate), 1), 1)-1

ENDFUNC
HTH,
- Erik Niese-Petersen

Crazy Dane in USA.
Previous
Reply
Map
View

Click here to load this message in the networking platform