Feb
26
2012

PHP code to display server date and time

Quick one-liner to output the current server date and time on a page.

The code

<?php    
/* Just add this in your page where you   * want the date/time to appear  */  
// Displays in the format Sunday, February 22, 2012 11.38

echo date("l, F d, Y h:i" ,time());  
?>

About the Author:

2 Comments + Add Comment

  • hello sir k ho new look …..ani online tutorial pani cha ta

    • Ya just started…

Leave a comment