Class DateFormatter
DateFormatter
Defined in: Hermes.js.
Constructor Attributes | Constructor Name and Description |
---|---|
<private> |
DateFormatter(sFormat)
DateFormatter is the class to format dates
|
Field Attributes | Field Name and Description |
---|---|
<static> |
DateFormatter.DEFAULT
|
Method Attributes | Method Name and Description |
---|---|
addZero(nNumber)
addZero is a method that adds a Zero to all the number that are less than 10
|
|
formatDate(oDate)
formatDate returns the string with the formatted date.
|
|
getTimeZoneOffset(oDate)
getTimeZoneOffset set the timezone and returns the difference
|
|
setDefaultFormat(sFormat)
setDefaultFormat change the format to format the date
|
Class Detail
<private>
DateFormatter(sFormat)
DateFormatter is the class to format dates
- Parameters:
- sFormat
Field Detail
<static>
DateFormatter.DEFAULT
Method Detail
addZero(nNumber)
addZero is a method that adds a Zero to all the number that are less than 10
- Parameters:
- nNumber
- Returns:
- {String}
formatDate(oDate)
formatDate returns the string with the formatted date.
- Parameters:
- oDate
getTimeZoneOffset(oDate)
getTimeZoneOffset set the timezone and returns the difference
- Parameters:
- oDate
- Returns:
- {String}
setDefaultFormat(sFormat)
setDefaultFormat change the format to format the date
- Parameters:
- sFormat
- Returns:
- DateFormatter instance