Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
End of the Month Calculation
Message
 
To
28/12/2000 09:26:00
Jacqueline Burns
National Commerce Financial Corporation
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00457305
Message ID:
00457312
Views:
18
>How do I calculate the end of the Month for any given year and month?

*------------------------------------------------
FUNCTION _EOM(dFecha)
*------------------------------------------------
* Return EndOfMonth
* USO: _EOM(DATE())
* RETURN: Date
*------------------------------------------------
  LOCAL ld 
  ld = GOMONTH(dFecha,1)
  RETURN ld - day(ld)
ENDFUNC
*------------------------------------------------
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform