In this tutorial you will learn how find PHP date in gmt format in a PHP web application.
PHP date gmt format
In this tutorial you will learn how find PHP date in gmt format in a PHP web application. The code of "php-date-gmt-format.php" given below :
<?php $currentDate=date('d-m-Y'); echo "Current date : ".$currentDate; echo "<br>"; echo "Date in GMT format : "; echo "<br>"; echo gmdate('D, d M Y H:i:s \G\M\T'); ?>
Output :
When run "php-date-gmt-format.php" display output as :
[ 0 ] Comments