doukuiqian5345 2011-03-23 23:18
浏览 17
已采纳

如何使用php从mysql datetime中删除重复的一天

Following php scripts

 <?php 
echo date('D, F d ', strtotime($event->starttime)); echo $this->timestamp(strtotime($event->starttime));    
?>

display result as,

Mon, March 21 Mon at 8:00 AM

Fri, March 25 Fri at 9:00 AM

etc

Unfortunately its showing day (Here, Mon and Fri) twice. Here how to remove the second day( ie, before string at). I would like to show output as

Fri, March 25 at 9:00 AM

Any help please...

  • 写回答

3条回答 默认 最新

  • dsm42026 2011-03-23 23:24
    关注
    echo strftime('%a, %B %d at %I:%M %p', strtotime($event->starttime));
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)
编辑
预览

报告相同问题?