Javascript Client Date Format
I had a problem on extjs date. Seem by default it using computer date to create a date. I don't check up my pc and post the date.Then i found it based on American M/d/yyyy. Afte
Solution 1:
You can convert date to String when transfer it so that you can set the date format by yourself.
Solution 2:
Actually the default format used is 'm/d/y', and you can change the format self, and I don't think so the ext can get the client date format and change the format consistently.
Solution 3:
dont mind your regional setting
you have two options in your server you convert to string and change format
yourDate.ToString("MMM dd, yyyy")
see here or here for standard and custom format
or in your extjs code you use
renderer: Ext.util.Format.dateRenderer('d-M-Y'),
see here for available format strings.
Post a Comment for "Javascript Client Date Format"