• Home
  • About
  • Resume

JavaScript IsDate(): Validate date according browser locale

By , 07/20/2010 1:40 PM

In one of my recent projects I needed to validate whether user’s input is a valid date, and this needed to be done client-side, in browser prior submission to the server. Lazy as I am, I Googled for a ready-to-use code snippet. There’re plenty of versions out there, but most of them offer incomplete solution and none of them take into account browser locale, you know – the language settings:

So I decided to cook something of my own Continue reading 'JavaScript IsDate(): Validate date according browser locale'»

Panorama Theme by Themocracy