Date Converter Date Format yyyy-mm-dd PHP to MYSQL

date-convert-php

//DB = 2013-03-14
//Setear en la base de datos
$birthday = $this->request->post('birthday_y') . "-" . $this->request->post('birthday_m'). "-". $this->request->post('birthday_d');          
$rs_user->birthday = date("Y-m-d", strtotime($birthday));            
$rs_user->save();

//Getter de la base de datos
//DB = 2013-03-14
$dateb = explode("-", $rs_user->birthday);
$b_year     = $dateb[0];
$b_month    = $dateb[1];
$b_day      = $dateb[2];
post-author