Methods of module use a profile of the ISO-8601 standard to handle dates in a way that is unambiguous, culturally and location independent, fast, and easily machine readable. The format is yyyy-MM-ddTHH:mm:ss.SSS where the fields do not all need to be specified, and either local time, GMT offset or “Zulu” may be used. See the API documentation for details.


<style type="text/css">
  @import "dojox/widget/DocTester/DocTester.css";
<script type="text/javascript">

    var docTest = new dojox.widget.DocTester({}, "docTest");
<div id="docTest">
  >>> var date1 = new Date(2008, 9, 17); date1.setUTCHours(0);, {zulu: true});
  >>>, {selector: 'date'});
  >>>"2008-10-17T00:00:00Z").toGMTString(); // note toGMTString output is implementation-dependent
  "Fri, 17 Oct 2008 00:00:00 GMT"
  >>>"T23:59:59.999-04:00", new Date(2008,9,17)).toGMTString();
  "Sat, 18 Oct 2008 03:59:59 GMT"
Error in the documentation? Can’t find what you are looking for? Let us know!