DateValidator: some fixes in DateValidator