mercredi 13 janvier 2016

Saving incorrect date in MySQL Database

I am writing below code to convert the data to Date.

$date = strtotime($request->input('DueDate'));
$Job->DueDate = date('Y-m-d', $date);
$Job->save();

But this saves the data as 0000-00-00



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire