www.webdeveloper.com
Results 1 to 2 of 2

Thread: Localization of Date depending on user locale using javascript

Hybrid View

  1. #1
    Join Date
    Jan 2014
    Posts
    1

    Question Localization of Date depending on user locale using javascript

    HI All,
    Can any one tell me how to do Localization of Date depending on user locale using javascript.
    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

  2. #2
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,265
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles