Add checking of maximum days in month, with support for leap years.
Merge pull request #3 from twemyeez/master

Added maximum days in month check.