I tried with date.toLocaleString("fr-FR") it is workign fine.But problem here isnot all the browser supports this API.Only few browser supports this API
Can anyone help me how to localize the date for a given user locale.
Thanks in advance
The code date.toLocaleString() is enough to get the date with the user locale date.
It may depend on the browser (See this page of w3schools.com )
I have in France lundi 13 janvier 2014 18:12:46 in IE9, mozillia and Opera
but Monday, January 13, 2014 18:09:28 in Safari for windows and 13/1/2014 18:09:50 in Google Chrome.
Last edited by 007Julien; 01-13-2014 at 11:20 AM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread