How to remove minutes from a time if they are zero (09:00 to 9am)

后端 未结 0 610
余生分开走
余生分开走 2020-12-22 23:56

I need to convert 4 digit times to am/pm and can do that using this function: date("g:ia",$starttime) which converts 08:30 to "8:30am".

But I want

相关标签:
回答
  • 消灭零回复
提交回复
热议问题