I just want to know that what is equivalent of C# DateTimeKind.Local in JavaScript and how can I set it in JavaScript
Asked
Active
Viewed 724 times
1
-
possible duplicate of http://stackoverflow.com/questions/2388115/get-locale-short-date-format-using-javascript ?? – MilkyWayJoe Mar 09 '12 at 20:28
1 Answers
0
There is no native support for most of DateTime localization methods in JavaScript. Also in your case simple new Date()
returns date in browser's local time zone if it is enough for you.
If you have JQuery consider using https://github.com/jquery/globalize to deal with number/date formatting.

Alexei Levenkov
- 98,904
- 14
- 127
- 179
-
Hi I am not using JavaScript in a browser I am using in Titanium for mobile application development. – Altaf Mar 12 '12 at 05:39
-