Welcome Guest, Not a member yet? Register   Sign In
If date is == 0000-00-00 question
#2

You can do a conditional check like

if(strtotime($user_info['dob']) == 0)

or

$data['dob'] = (strtotime($user_info['dob']) == 0) ? '' : date("d-m-Y", strtotime($user_info['dob']));

Reply


Messages In This Thread
RE: If date is == 0000-00-00 question - by Rufnex - 05-18-2017, 12:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB