Using dijit.form.DateTextBox Not able to retain proper Time value
I am using dijit.form.DateTextBox to update my date field.
<form:input id="date_id" name="date_field" path="createDate"
dojoType="dijit.form.DateTextBox"
disabled="false"
constraints="{datePattern:'dd/MM/yyyy
hh:mm:ss.SS'}"
invalidMessage="invalid"
promptMessage="invalid"
lang="en-us" required="true"/>
now, suppose If my 'createDate' value is '05/01/2012 21:10:17.287', but it
is displaying as '05/01/2012 12:00:00.00' in date text box. Due to which,
while editing this field, I'm not able to keep it as it was.
Is there anyway I can retain that time part '21:10:17.287'.
Kindly suggest.
No comments:
Post a Comment