Welcome Guest, Not a member yet? Register   Sign In
Cannot Get Date format from input field
#2

Browsers use different date format than MySQL servers. You have to convert it from one format to another before you add it to DB, but there are few helpful PHP functions that might solve this fairly easily:

PHP Code:
$birth_day date('Y-m-d'strtotime($this->input->post("b_day"))); 
Reply


Messages In This Thread
RE: Cannot Get Date format from input field - by Pertti - 06-25-2018, 12:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB