Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function to get the last day of month
Message
From
11/07/1997 19:31:43
 
 
To
11/07/1997 19:17:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00039619
Message ID:
00039621
Views:
41
The easiest way I know:

lcDate=GoMonth(ldMyDate-day(ldMyDate),1)

This doesn't depend on SET CENTURY or SET DATE, it works for leap years, etc.

Vlad

>Base on a specific date, is there a function which will return the last date of the month?
>
>For example, I have 01/01/1997, I would like to have 31/01/1997.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform