Validate moment date

Hi, without this checking i get a "calendar-day-Invalid date" ids in day elements, and checking fix it.
Merge pull request #23 from bhoodream/patch-1

Validate moment date