public static var defaultDataFormat:String
The default pattern for database string data
Set to "yyyy-MM-ddTHH:mm:ss.Sz" in ApplicationProperties
If set here will override the value in ApplicationProperties
public static var defaultDisplayFormat:String
The default pattern for display one of full long short medium
Set to "short" in ApplicationProperties
If set here will override the value in ApplicationProperties
public var locale:Locale
public var pattern:String
public var symbols:DateSymbols
public var tokens:Array
public function DateFormat(... rest)
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.
Parameters
public function applyPattern(pattern:String):void
Applies the given pattern string to this date format
Applies the given pattern string to this date format by parsing the pattern into tokens.
Parameters
| pattern:String — - the new date and time pattern for this date format
|
public function format(value:*):String
Formats a Date into a date/time string
- Formats a Date into a date/time string
Parameters
| value:* — - the time value to be formatted into a time string.
|
Returns
| String — the formatted time string.
|
public static function getDateInstance(style:String = null, locale:Locale = null):DateFormat
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.
Parameters
| style:String (default = null) — - the given formatting style. For example, SHORT for "M/d/yy" in the US locale.
|
| |
| locale:Locale (default = null) — - the given locale,if a locale is not specified uses the default locale
|
Returns
public static function getDatePattern(pattern:String, locale:Locale = null):String
Returns the pattern for a given locale
Parameters
| pattern:String — one of short,long,medium,full,default or a custom pattern.
locale if null defaults to the default locale
|
| |
| locale:Locale (default = null) |
Returns
public static function getDateTimeDataFormatter(format:String):DateFormatget a data(sql) DateTime formatter
Parameters
Returns
public static function getDateTimeInstance(dateStyle:String = null, timeStyle:String = null, locale:Locale = null):DateFormat
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
Parameters
| dateStyle:String (default = null) — - the given date formatting style
|
| |
| timeStyle:String (default = null) — - the given time formatting style
|
| |
| locale:Locale (default = null) — - the given locale, if a locale is not specified uses the default locale
|
Returns
public static function getDefaultDataPattern():String
Returns
public static function getDefaultPattern():String
Returns
public function getEditMask(prompt:String):String
Returns an editor mask string for the current pattern
Parameters
Returns
public static function getInstance():DateFormat
Gets the date formatter with the given formatting style for the given locale.
Get a default date/time formatter that uses the default style for both the date and the time
Returns
public static function getPatternIndex(pattern:String):intParameters
Returns
public static function getSQLDateInstance(locale:Locale = null):DateFormat
Gets the date/time formatter with the DefaultDateDataFormat(ISO8601) formatting style for the given locale
Gets the date/time formatter with the DefaultDateDataFormat(ISO8601) formatting styles for the given locale
Parameters
| locale:Locale (default = null) — - the given locale, if a locale is not specified uses the default locale
|
Returns
public static function getTimeInstance(style:String = null, locale:Locale = null):DateFormat
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.
Parameters
| style:String (default = null) — - the given formatting style. For example, SHORT for "M/d/yy" in the US locale.
|
| |
| locale:Locale (default = null) — - the given locale,if a locale is not specified uses the default locale
|
Returns
public static function getTimePattern(pattern:String, locale:Locale = null):String
Returns the pattern fora given locale
Parameters
| pattern:String — one of short,long,medium,full,default or a custom pattern.
locale if null defaults ot the default locale
|
| |
| locale:Locale (default = null) |
Returns
public static function isFieldDelimeter(v:String):Boolean
Is the value a field delimeter character
Parameters
Returns
public function parse(value:String):*
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.
Parameters
| value:String — - A String whose beginning should be parsed
|
Returns
| * — A Date parsed from the string
|
public static const DEFAULT:String = "default"
public static const FULL:String = "full"
public static const ISO:String = "iso"
public static const LONG:String = "long"
public static const MEDIUM:String = "medium"
public static const NONE:String = "none"
public static const SHORT:String = "short"
public static const SQL:String = "sql"