Validates_format_of datetime?


#1

What’s the best way to check a field to ensure it is a valid datetime? I
could validates_format_of :with a regular expression for “yyyy-mm-dd
hh:mm:ss”, but I’m wondering if there is a more direct way to do this.