Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

DateTime getLastDateOfMonth: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
 
Line 1: Line 1:
[[Category:General_Functions]]
{{HelpFiles}}  
{{HelpFiles}}
 
<br>


==== DateTime_getLastDateOfMonth ====


====DateTime_getLastDateOfMonth====
Return the last date of month


Return the last date of month
'''Syntax'''


'''Syntax'''
DateTime_getLastDateOfMonth(year,month);


DateTime_getLastDateOfMonth(year,month);
'''Arguments'''


'''Arguments'''
*year: is number
*month: number


* year: is number
'''Return value'''
* month: number


'''Return value'''
array, in which:


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


* DateTime_Year
'''Example'''
* 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; ''


number n = 2;
''print(DateTime_getLastDateOfMonth(2009,n)); ''


print(DateTime_getLastDateOfMonth(2009,n));
''// result: {2009,2,28,0,0,0,0,9,40} ''


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


'''Availability'''
Version 5.7 __NOTOC__ <!-- imported from file: 7540.htm-->


Version 5.7
[[Category:General_Functions]]
__NOTOC__
<!-- imported from file: 7540.htm-->

Latest revision as of 07:41, 21 December 2011




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