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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -