Jump to content

strotime question


flemingmike

Recommended Posts

I think you need a space between the minutes and the meridiem.  You definitely need to use upper-case "H" for the 24-hour format:

 

$start3='07:30 AM';
$finish3='05:15 PM';

$tstart1 = date( 'H:i', strtotime($start3) );
   $tfinish1 = date( 'H:i', strtotime($finish3) );

Link to comment
https://forums.phpfreaks.com/topic/214650-strotime-question/#findComment-1116862
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.