Fixes #1003: DateValidator returned true for invalid dates