Rewriten into a generic DateTime validator and a preconfigured Date and Time validator