Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

codeigniter form validation datetime

$this->form_validation
     ->set_rules('fromdatetime',
             'Date',
             'required|regex_match[d{4}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3(0|1))]');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #codeigniter #form #validation #datetime
ADD COMMENT
Topic
Name
7+3 =