Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>lastdayom()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 LASTDAYOM()
 Determines the number of days in a month
------------------------------------------------------------------------------
 Syntax

     LASTDAYOM([<dDate|nMonth>]) --> nDaysInMonth

 Argument

     <dDate|nMonth>  Designates either a date or the number of a month.
     The default is the system date.

 Returns

     LASTDAYOM() returns the number of days in the month specified by
     <dDate|nMonth>.

 Description

     To administer due dates and other similar dates, it is useful to know
     the number of days that remain in a month.  Specify either the day's
     date or month as a parameter, and you get the length of the month in
     days.  If you subtract the number of days until today's date, you are
     left with the days that remain until month end.

 Note

     .  Without the <dDate|nMonth> parameter, the function
        automatically uses the system date.  If there is an invalid number of
        months, LASTDAYOM() returns 0 as an error code.

 Example

     How many days remain before the end of the month?

     ? "There are " + STR(LASTDAYOM() - DAY(), 2) +;
        " days until the end of the month"


See Also: EOM()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson