Data Localization With JavaScript

Written by rsolberg on. Posted in Software Development, Technology

I worked on an ASP.NET app with localization and globalization. I was having some difficulty understanding how to get the Date() function in javascript to work properly given the user’s environment. My user base was split between Mexico (spanish) and the US (english). Since the Mexico date format is dd/mm/yyyy and the english format is mm/dd/yyyy, the standard Date(strDate) javascript constructor does not work for me. Then i found Datejs… What a savior! I started off by reading their blog post titled “Getting Started With Datejs“…. Hopefully you’ll find the tool as useful as I did.
Be Sociable, Share!

Tags: , ,

Trackback from your site.

Leave a comment

© Copyright RSolberg, 2003 - 2014. All Rights Reserved