Functiondijit.form._DateTimeTextBox.parse

dojo.require("dijit.form._DateTimeTextBox");
defined in dijit/form/_DateTimeTextBox.js

parses the value as a Date, according to constraints

Usage

function (/*String*/ value, /*dojo.date.locale.__FormatOptions*/ constraints) (view source)
parametertypedescription
valueString 
constraintsdojo.date.locale.__FormatOptions
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