您需要将其转换为 UNIX 时间戳(使用 strtotime),然后使用 日期 函数.
You need to convert it to a UNIX timestamp (using strtotime) and then back into the format you require using the date function.
例如:
$currentDateTime = '08/04/2010 22:15:00';
$newDateTime = date('h:i A', strtotime($currentDateTime));