date関数のformat 2019/4/24 2019/4/29 PHP formatを‘Y-m-d H:i:s’つまり date('Y-m-d H:i:s') とすると 2019-04-01 23:02:04というふうに表示されます。