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.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs