Class: DateTimeConverter
Oracle® Fusion Middleware Oracle JavaScript Extension Toolkit (JET)
12c (12.1.4)
E54107-01
Constructor
new DateTimeConverter(options)
Parameters:
Name |
Type |
Argument |
Description |
options |
Object
|
<optional>
|
an object literal used to provide an optional information to |
- Source:
Methods
-
-
Formats the Date value using the options provided and returns a String value.
Parameters:
Name |
Type |
Description |
value |
Date
|
to be formatted for display |
- Source:
Throws:
a ConverterError if formatting fails.
-
Type
-
Error
Returns:
the localized and formatted value suitable for display
-
Type
-
String
|
null
-
getHint() → {String|null}
-
Returns a hint that describes the converter format expected.
- Inherited From:
- Source:
Returns:
a hint describing the format the value is expected to be in.
-
Type
-
String
|
null
-
getOptions() → {Object}
-
Returns the options called with converter initialization.
- Inherited From:
- Source:
Returns:
an object of options.
-
Type
-
Object
-
Init(options)
-
Initializes the date time converter instance with the set options.
Parameters:
Name |
Type |
Argument |
Description |
options |
Object
|
<optional>
|
an object literal used to provide an optional information to
initialize the converter. |
- Source:
-
isDayNameSet()
-
Returns true if the day name is shown in the date portion; false otherwise.
- Source:
-
isDaySet()
-
Returns true if day is shown in the date portion; false otherwise.
- Source:
-
isHourInAMPMSet()
-
Returns true if 12-hour is set; false otherwise.
- Source:
-
isHourInDaySet()
-
Returns true if a 24-hour format is set; false otherwise.
- Source:
-
isMilliSecondSet()
-
Returns true if milliseconds are shown in the time portion; false otherwise.
- Source:
-
isMinuteSet()
-
Returns true if minutes are shown in the time portion; false otherwise.
- Source:
-
isMonthSet()
-
Returns true if month is shown in the date portion; false otherwise.
- Source:
-
isSecondSet()
-
Returns true if seconds are shown in the time portion; false otherwise.
- Source:
-
isYearSet()
-
Returns true if year is shown in the date portion; false otherwise.
- Source:
-
parse(value) → {Date}
-
Parses the value using the options provided and returns a Date value.
Parameters:
Name |
Type |
Description |
value |
String
|
to parse |
- Source:
Throws:
a ConverterError if parsing fails
-
Type
-
Error
Returns:
the parsed value as a Date object.
-
Type
-
Date
-
resolvedOptions() → {Object}
-
Returns an object literal with locale and formatting options computed during initialization of
the object. If options was not provided at the time of initialization, the properties will be
derived from the locale defaults.
- Inherited From:
- Source:
Returns:
an object of resolved options.
-
Type
-
Object