I just went over this in a critical moment and thought I would share.

In the event that you need to change over a period in 24 hour organization, for example, 14:00, to 12 hour arrange, which would be 2PM, you can utilize the accompanying code.

24 Hour to 12 Hour:

<?php echo date("g:i a", strtotime("13:30")); ?>

Furthermore, in the event that you needed to change over the 12 hour time configuration to 24 hour, you can utilize the following piece of code.

12 Hour to 24 Hour:

<?php echo date("H:i", strtotime("1:30 PM")); ?>
by Govind Oza . Powered by Blogger.

PHP Frameworks

Popular Posts