PHP、現在の日付の取得方法
$dt = new DateTime();
$dt->setTimeZone(new DateTimeZone('Asia/Tokyo'));
$current_time = $dt->format('Y-m-d H:i:s');
echo "now:".date("Y.m.d",strtotime($current_time))."\n";
$dt = new DateTime();
$dt->setTimeZone(new DateTimeZone('Asia/Tokyo'));
$current_time = $dt->format('Y-m-d H:i:s');
echo "now:".date("Y.m.d",strtotime($current_time))."\n";