让它进入丹麦时间 - 它不能按照我想要的方式直接工作


Make it into Danish time - it does not work the way I want it straight pt

我试图在丹麦时间上腾出时间,但它并没有像我想要的那样工作。

<?php echo date("d/m/Y - H:s", $online_sidste);?>

我只是希望它看起来像这样: 15/10-2013 - 08:01

我已经完成了这个她:

date("d/m-Y - H:i", strtotime($online_sidste));

只需格式化它

$today = date("d/m-Y - H:s");
echo $today;
echo date_create($online_sidste)->format('d/m-Y - H:i');

date("d/m-Y - H:i", strtotime($online_sidste));