Blog Details

how to convert 12 hour to 24 hours time


                                
                                    <?php

$time_ws="1:30 PM";

echo $time_24_hour_ws = date("H:i", strtotime($time_ws));

//13:30

echo $time_24_hour_ws = date("H:i:s", strtotime($time_ws));

//13:30:00

?>

 

 
                                    


Categories

Core_PHP

Latest posts

13.05.14
Implementing CRUD Operations ΒΆ

<ul> <li>Now comes the fun part. We would like t

13.05.14
View

<ol> <li><a href="http://www.yiiframework.com/do

13.05.14
Creating Model

<ol> <li><a href="http://www.yiiframework.com/do

Get Free Quote