Difference between revisions of "DateTime getLastDateOfMonth"

From Catglobe Wiki
Jump to: navigation, search
(jrfconvert import)
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
+
{{HelpFiles}}

 
  
====DateTime_getLastDateOfMonth====
+
<br>
  
Return the last date of month
+
==== DateTime_getLastDateOfMonth ====
  
'''Syntax'''
+
Return the last date of month
  
DateTime_getLastDateOfMonth(year,month);
+
'''Syntax'''
  
'''Arguments'''
+
DateTime_getLastDateOfMonth(year,month);
  
* year: is number
+
'''Arguments'''
* month: number
 
  
'''Return value'''
+
*year: is number
 +
*month: number
  
array, in which:
+
'''Return value'''
  
* DateTime_Year
+
array, in which:  
* DateTime_Month
 
* DateTime_Day
 
* DateTime_Hour
 
* DateTime_Minute
 
* DateTime_Second
 
* DateTime_MilliSecond
 
* DateTime_Week
 
* DateTime_TimeZone: Timezone is login user's time zone
 
  
'''Example'''
+
*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
  
number n = 2;
+
'''Example'''
  
print(DateTime_getLastDateOfMonth(2009,n));
+
''number n = 2; ''
  
// result: {2009,2,28,0,0,0,0,9,40}
+
''print(DateTime_getLastDateOfMonth(2009,n)); ''
  
'''Availability'''
+
''// result: {2009,2,28,0,0,0,0,9,40} ''
  
Version 5.7
+
'''Availability'''
__NOTOC__
+
 
<!-- imported from file: 7540.htm-->
+
Version 5.7 __NOTOC__ <!-- imported from file: 7540.htm-->  
 +
 
 +
[[Category:General_Functions]]

Latest revision as of 08: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