Call system date function and get result : Date Time « Development « PHP






Call system date function and get result


<?php
   $result = shell_exec("date");
   echo "<p>The server timestamp is: $result</p>";
?>

           
       








Related examples in the same category

1.date: m/d/y G:i:s e
2.Save result of getdate() to an array
3.date: jS \o\f F Y, \a\\t g:ia \i\\n e
4.String time
5.String matches: /p.p/
6. December 16th 2002, 09:17AM.
7.Today's Date
8.Get date and time