Created regular expression to validate datetime fields