Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Days in month
Message
 
To
05/11/2007 06:38:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8
Miscellaneous
Thread ID:
01266644
Message ID:
01266646
Views:
10
>Hi
>There is a way to know how many days I have in specific month(29/30/31)?
>(for example I call the fanction ?func?({09/09/2006})

Get the LastDay of this month:
? GetLastDay({09/09/2006})


FUNCTION GetLastDay(ldDate)
RETURN DAY(GOMONTH(ldDate,1)-DAY(ldDate))
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform