Adding validations for strings formatted as mysql date, mysql datetime and timestamp