PHP date gmt format

PHP date gmt format


Posted in : PHP Posted on : February 3, 2011 at 6:09 PM Comments : [ 0 ]

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 :

Download Source Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics