Browsing articles in "Php Functions"
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());  ?>