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")

dijit form


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -