📜  在 php 代码示例中转换日期

📅  最后修改于: 2022-03-11 14:53:51.740000             🧑  作者: Mango

代码示例6
phpCopyecho $dateNew = DateTime::createFromFormat('m-d-Y', '03-08-2020')->format('Y/m/d');
//output: 2020/03/08