📜  php 格式日期 - PHP 代码示例

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

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