Functiondojo.date.stamp.toISOString

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

When options.selector is omitted, output follows RFC3339 The local time zone is included as an offset from GMT, except when selector=='time' (time without a date) Does not check bounds. Only years between 100 and 9999 are supported.

Usage

function (/*Date*/ dateObject, /*dojo.date.stamp.__Options?*/ options) (view source)
parametertypedescription
dateObjectDateA Date object
optionsdojo.date.stamp.__OptionsOptional.
fieldtypedescription
.millisecondsBooleanif true, output milliseconds
.selectorString"date" or "time" for partial formatting of the Date object. Both date and time will be formatted by default.
.zuluBooleanif true, UTC/GMT is used for a timezone