Fixed a small issue with the date validator.