Class AjxDateFormat
Class Detail
AjxDateFormat(pattern)
The AjxDateFormat class formats Date objects according to a specified
pattern. The patterns are defined the same as the SimpleDateFormat
class in the Java libraries. Note: Only the
Gregorian Calendar is supported at this time. Supporting other
calendars would require a lot more information downloaded to the
client. Limiting dates to the Gregorian calendar is a trade-off.
Note: The date format differs from the Java patterns a few ways: the pattern "EEEEE" (5 'E's) denotes a short weekday and the pattern "MMMMM" (5 'M's) denotes a short month name. This matches the extended pattern found in the Common Locale Data Repository (CLDR) found at: http://www.unicode.org/cldr/.
Field Detail
<static>
AjxDateFormat.DEFAULT
Default date/time format style.
<static>
AjxDateFormat.FULL
Full date/time format style.
<static>
AjxDateFormat.LONG
Long date/time format style.
<static>
AjxDateFormat.MEDIUM
Medium date/time format style.
<static>
AjxDateFormat.NUMBER
Number date .
<static>
AjxDateFormat.SHORT
Short date/time format style.
Method Detail
<static>
{string}
AjxDateFormat.format(pattern, date)
Format a date. Equivalent to
new AjxDateFormat(pattern).format(date) .
<static>
{AjxDateFormat}
AjxDateFormat.getDateInstance(style)
Get a date formatter.
<static>
{AjxDateFormat}
AjxDateFormat.getDateTimeInstance(dateStyle, timeStyle)
Get a date and time formatter.
<static>
{AjxDateFormat}
AjxDateFormat.getTimeInstance(style)
Get a time formatter.
{Date}
parse(s)
Parses the given string and returns a date. If the string cannot be
parsed as a date,
null is returned.
<static>
{Date}
AjxDateFormat.parse(pattern, dateStr)
Parse a date. Equivalent to
new AjxDateFormat(pattern).parse(dateStr) .
<static>
AjxDateFormat.parseTime(timeStr)
Parses the given time using one of the AjxDateFormat._timeParsers, which are regexes defined in the properties
|
||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:30 GMT-0400 (EDT)
|