I am using a control for a popup calendar date picker. This uses a javascript function, SetText, to set the textbox to the given date. I can\'t change anything in the cale
If you control the backend, why not just send a timestamp and push it into Date
object?
As for formatting on the client side, since I was already using Dojo, I solved this problem by using dojo.date.locale.format
. It was completely painless.
Tutorial: http://docs.dojocampus.org/dojo/date/locale
API doc:
http://api.dojotoolkit.org/jsdoc/1.3/dojo.date.locale.format
Date format descriptions: http://www.unicode.org/reports/tr35/tr35-4.html#Date_Format_Patterns