try the following: HTML:
<input type="text" name="date1" id="date1" value="2005-12-30" dojotype="dijit.form.DateTextBox" required="true" />
To get the displayed value, you can use this text field of the date method:
Note *
Dojo format the date according to the user's language.
IF you can use a format that is different from the user's locale format for which you want to specify a restriction property for a date text field.
<input type="text" name="date1" id="date1" value="2005-12-30" constraints="{datePattern:'yyyy-MM-dd', strict:true}" dojotype="dijit.form.DateTextBox" required="true" />
HTML page :
source share