Php如何将日期从12小时格式转换为24小时格式

Php如何将日期从12小时格式转换为24小时格式,php,date,format,Php,Date,Format,在这个脚本中,我得到的结果是2017年1月11日12:00:01,所以我想要得到的结果是:2017年1月11日00:00:01 $time1 = strtotime("1/".$value['date_operation']."00:00:01"); $newformat1 = date('d/m/Y h:i:s',$time1); echo $newformat1."this is the day formated"; 注意大写的“H” $newformat1 = date('d/m/Y

在这个脚本中,我得到的结果是2017年1月11日12:00:01,所以我想要得到的结果是:2017年1月11日00:00:01

$time1 = strtotime("1/".$value['date_operation']."00:00:01"); 
$newformat1 = date('d/m/Y h:i:s',$time1);
echo $newformat1."this is the day formated";
注意大写的“H”

$newformat1 = date('d/m/Y H:i:s',$time1);