Validate moment date

Hi, without this checking i get a "calendar-day-Invalid date" ids in day elements, and checking fix it.