Welcome Guest, Not a member yet? Register   Sign In
Preg_match dd-mm-yyyy
#3

(This post was last modified: 05-19-2017, 02:31 AM by wolfgang1983.)

(05-19-2017, 02:23 AM)Rufnex Wrote: Try something like that (or use php checkdate method)

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

Thanks again for great help works perfect
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
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



Theme © iAndrew 2016 - Forum software by © MyBB