sofish/validator.js — pull request #1 by ChrisYip (2012-10-12 07:46:15+00:00)
Title: smarter way to validate date.

Use built-in Date object to validate date string.

Pros:

- No need to detect whether it's lead year
- No need to detect whether it's a month of 31 days.