Functiondojo.date.locale.regexp

dojo.require("dojo.date.locale");
defined in dojo/date/locale.js

Builds the regular needed to parse a localized date

Usage

function (/*dojo.date.locale.__FormatOptions?*/ options) (view source)
parametertypedescription
optionsdojo.date.locale.__FormatOptionsOptional.
fieldtypedescription
.amStringoverride strings for am in times
.datePatternStringoverride pattern with this string
.formatLengthStringchoice of long, short, medium or full (plus any custom additions). Defaults to 'short'
.fullYearBoolean(format only) use 4 digit years whenever 2 digit years are called for
.localeStringoverride the locale used to determine formatting rules
.pmStringoverride strings for pm in times
.selectorStringchoice of 'time','date' (default: date and time)
.strictBoolean(parse only) strict parsing, off by default
.timePatternStringoverride pattern with this string