Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last day of a month
Message
From
07/11/1999 03:24:48
 
 
To
05/11/1999 18:23:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00287143
Message ID:
00288182
Views:
21
My function is....

FUNCTION EndMonth
LPARAMETERS tnMonth, tnYear
IF PCOUNT()<1
tnMonth = MONTH(DATE())
ENDIF
IF PCOUNT()<2
tnYear = YEAR(DATE())
ENDIF
IF m.tnMonth=12
RETURN DATE( m.tnYear, 12, 31)
ELSE
RETURN DATE( m.tnYear, m.tnMonth+1, 1) - 1
ENDIF
ENDFUNC
Nikolay Petkov, nik@osf.bg
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform