Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_lastday() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_LASTDAY()

 DESCRIPTION

 C_LASTDAY() returns the last day of the specified month and year
 taking into account leap years.

 SYNTAX

 C_LASTDAY(month [,year])

 PARAMETERS

 month (N) is the month to be used to find the last day.  month must
 be the numeric month from 1 to 12.

 year (N) is the year to be used to evaluate leap year for the given
 month.  year can be specified as a 2 (90) or 4 (1990) digit year.
 If a 2 digit year is used it is assumed to be 1900.  If year is not
 specified, the last day of each month is returned assuming it is
 not a leap year.

 RETURNS

 C_LASTDAY() returns the last day of the specified month and year as
 a numeric.

 EXAMPLES

 c_lastday(1,91)   --> 31
 c_lastday(2,91)   --> 28

 c_lastday(1,92)   --> 31
 c_lastday(2,92)   --> 29    && leap year

 c_lastday(1,1991) --> 31
 c_lastday(2,1991) --> 28

 c_lastday(1)      --> 31    && no year given
 c_lastday(2)      --> 28    && no year given


See Also: C_ISLEAP()

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