Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>lastdayom()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LASTDAYOM()

Syntax:     LASTDAYOM([<expX>])

Arguments:  <expX> is either a date or a month number.

Returns:    A numeric value.
            The number of days in the month determined by <expX>.

Usage:      It is very useful to know how many days remain in a month
            in order, among other things, to monitor deadlines.  To this
            end, supply either the present date or only the month as an
            argument and the length of the month is returned.
            Then subtract the figure of the present date to obtain the
            remaining days to the end of the month.

Notes:      The function  will default to the system date if no argument is
            passed.  LASTDAYOM() will return the value 0 as an error
            code in the event of an invalid month figure.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * How many days remaining to the end
            * of the month.
            ? "Still " + STR(LASTDAYOM() - ;
               VAL(DTOC(DATE())),2) + ;
                "days until the end of the month."

            ? "The month of June has " + STR(LASTDAYOM(6)) ;
              + " days."



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