Class DateUtilities
Object
|
+--DateUtilities
- class
DateUtilities
Defined in date_utilities.js
Method Summary |
<static> int
|
getDaysInMonth(<int> month, <int> year)
Get the number of days in the given month.
|
<static> string
|
getMonthName(<int> month, <boolean> shortName)
Get month name.
|
<static> Array
|
getMonthNames(<boolean> shortNames)
Get an array of month names.
|
<static> boolean
|
isLeapYear(<Object> date)
Determine if a year is a leap year or not.
|
DateUtilities
function DateUtilities()
getDaysInMonth
<static> int getDaysInMonth(<int> month, <int> year)
Get the number of days in the given month.
Parameters:
month
- The month index (zero based)
year
- The full year (Ex. 1990)
getMonthName
<static> string getMonthName(<int> month, <boolean> shortName)
Parameters:
month
- The month index (zero based)
shortName
- Return abbreviated month name.
getMonthNames
<static> Array getMonthNames(<boolean> shortNames)
Get an array of month names.
Parameters:
shortNames
- Return abbreviated month names.
isLeapYear
<static> boolean isLeapYear(<Object> date)
Determine if a year is a leap year or not.
Parameters:
date
- Either a Date object or an integer year.
