Format DateTime non valide Laravel

change format to Y-m-d and for datetime is Y-m-d H:i:s
tsnl_incredible