fix date validation
Merge pull request #15 from kazalt/master

fix date validation