Only include valid dates

This fixes an issue where the calendar will jump to the date 0000-00-00 when you start typing.

The problem is particularly nasty when past dates aren't allowed, since you'll then have to guess at the correct date format to move the calendar back to a valid date (or, given enough patience, you could increment the month through the years :-))