1

I just want to know that what is equivalent of C# DateTimeKind.Local in JavaScript and how can I set it in JavaScript

M.Babcock
  • 18,753
  • 6
  • 54
  • 84
Altaf
  • 5,150
  • 10
  • 39
  • 55
  • possible duplicate of http://stackoverflow.com/questions/2388115/get-locale-short-date-format-using-javascript ?? – MilkyWayJoe Mar 09 '12 at 20:28

1 Answers1

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