Formatting date in domForm.toJson in dojo -
in web application have changed dijit/form/datetextbox
date format using constraints="{datepattern:'mm/dd/yyyy'}"
attribute, when call form containing dijit/form/datetextbox
using domform.tojson
format changed yyyy/dd/mm
why? how solve it
dijit/form/datetextbox dojo/widget not dom.
domform.tojson access dom's value not dijit widget's get('value') function gives formatted output expect.
to correct value - use dijit/form , use form.get("value")
Comments
Post a Comment