📜  在 php 代码示例中格式化日期

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

代码示例6
$myDateTime = DateTime::createFromFormat('Y-m-d', $dateString);
$newDateString = $myDateTime->format('d-m-Y');