• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Preg_match dd-mm-yyyy

#2
Try something like that (or use php checkdate method)

Code:
preg_match('/^(\d{2})-(\d{2})-(\d{4})$/', $this->input->post('dob'));

Reply


Messages In This Thread
Preg_match dd-mm-yyyy - by wolfgang1983 - 05-19-2017, 02:07 AM
RE: Preg_match dd-mm-yyyy - by Rufnex - 05-19-2017, 02:23 AM
RE: Preg_match dd-mm-yyyy - by wolfgang1983 - 05-19-2017, 02:31 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.