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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -