Parsing Localized Strings in JavaScript

Now I discover (well, the testers discover) JavaScript does not take locale into consideration when attempting to parse a float. So if you’re localized to Belgium, then parseFloat (’134,39′) returns 134. You’ll need to wrap parseFloat appropriately.

Localized Date Parsing in JavaScript

Well heck. The JavaScript Date constructor’s not as smart as I thought (at least in Mozilla and Safari.) I found this out while round-tripping a date. I’m adding a row to a table. var d = new Date (‘m/y/d’); var ds = d.toLocaleDateString (); The localized string became a text node in a table cell. [...]