DateTime getLastDateOfMonth

From Catglobe Wiki
Revision as of 10:04, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



DateTime_getLastDateOfMonth

Return the last date of month

Syntax

DateTime_getLastDateOfMonth(year,month);

Arguments

  • year: is number
  • month: number

Return value

array, in which:

  • DateTime_Year
  • DateTime_Month
  • DateTime_Day
  • DateTime_Hour
  • DateTime_Minute
  • DateTime_Second
  • DateTime_MilliSecond
  • DateTime_Week
  • DateTime_TimeZone: Timezone is login user's time zone

Example

number n = 2;

print(DateTime_getLastDateOfMonth(2009,n));

// result: {2009,2,28,0,0,0,0,9,40}

Availability

Version 5.7