rise
PHP/日付のフォーマット変更
PHP
$date = '2013-01-01 00:00:00'; echo date('Y-m-d', strtotime($date)); 2013-01-01