Jump to content

[SOLVED] Remove 0 from strtotime?


FridayRain

Recommended Posts

Like every other blog in the world, I have mine displaying the date and time of each entry. Right now this is what I'm using:

 

echo date('h:ia', strtotime($r[date]));

 

My latest entry's time is displayed as 07:56pm. How do I remove the 0 when the hour is a single digit?

Link to comment
https://forums.phpfreaks.com/topic/69746-solved-remove-0-from-strtotime/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.