Reputation: 10620
Date.toLocaleString() returns this in Chrome:
In firefox, it's this:
Browser version doesn't seem to matter. Anyone have a suggestion on this one?
Upvotes: 1
Views: 2636
Reputation: 4543
As CMS answered above, these methods can return pretty much anything they want, hopefully in a representation that is readable to someone in that locale (language + cultural conventions) To obtain a particular formatting of a Date, you need to use a library like DateJS or Dojo.
Upvotes: 0