| Previous | Next | Frames | No Frames |
| Summary: Field | Property | Contructor | Method | Detail: Field | Property | Contructor | Method |
Object | +--xp.util.DateFormat
Field Summary | |
| public static | DEFAULT: Number |
| Constant for default style pattern | |
| public static | FULL: Number |
| Constant for full style pattern | |
| public static | LONG: Number |
| Constant for long style pattern. | |
| public static | MEDIUM: Number |
| Constant for medium style pattern | |
| public static | NONE: Number |
| Constant for no specified style pattern | |
| public static | SHORT: Number |
| Constant for short style pattern | |
Constructor | |
| public | DateFormat ( ) |
| Constructs a DateFormat using the given pattern and the default date format symbols for the given locale. | |
Method Summary | |
| public | applyPattern ( pattern: String ) |
| Applies the given pattern string to this date format | |
| public | format ( value: Date ): String |
| Formats a Date into a date/time string | |
| public static | getDateInstance ( style: Number, aLocale: Locale ) |
| Gets the date formatter with the given formatting style for the given locale | |
| public static | getDateTimeInstance ( dateStyle: Number, timeStyle: Number, aLocale: Locale ) |
| Gets the date/time formatter with the given formatting styles for the given locale | |
| public static | getInstance ( ) |
| Gets the date formatter with the given formatting style for the given locale. | |
| public static | getTimeInstance ( style: Number, aLocale: Locale ) |
| Gets the date formatter with the given formatting style for the given locale. | |
| public | parse ( value: String ): Date |
| Parses text from the beginning of the given string to produce a date | |
| public static var DEFAULT: Number |
| Constant for default style pattern |
| public static var FULL: Number |
| Constant for full style pattern |
| public static var LONG: Number |
| Constant for long style pattern. |
| public static var MEDIUM: Number |
| Constant for medium style pattern |
| public static var NONE: Number |
| Constant for no specified style pattern |
| public static var SHORT: Number |
| Constant for short style pattern |
|
| Constructs a DateFormat using the given pattern and the default date format symbols for the given locale. Constructs a DateFormat using the given pattern and date format symbols. Takes a variety of signatures DateFormat() Constructs a DateFormat using the default pattern and date format symbols for the default locale. DateFormat(pattern:String) Constructs a DateFormat using the given pattern and the default date format symbols for the default locale. DateFormat(pattern:String, formatSymbols:DateSymbols) Constructs a DateFormat using the given pattern and date format symbols. DateFormat(pattern:String, locale:Locale) Constructs a DateFormat using the given pattern and the default date format symbols for the given locale. |
|
| Applies the given pattern string to this date format Applies the given pattern string to this date format. | |||
|
|
| Formats a Date into a date/time string - Formats a Date into a date/time string | |||
|
|
| Gets the date formatter with the given formatting style for the given locale Gets the date formatter with the given formatting style for the given locale. | ||||||
|
|
| Gets the date/time formatter with the given formatting styles for the given locale Gets the date/time formatter with the given formatting styles for the given locale | |||||||||
|
|
| Gets the date formatter with the given formatting style for the given locale. Get a default date/time formatter that uses the SHORT style for both the date and the time |
|
|
| Gets the date formatter with the given formatting style for the given locale. Gets the date formatter with the given formatting style for the given locale. | ||||||
|
|
| Parses text from the beginning of the given string to produce a date - Parses text from the beginning of the given string to produce a date. The method may not use the entire text of the given string. | |||
|