PHP script to get current date.
You can use the following code to print the current in PHP:
<?php echo date('y m d'); ?>
With the help of following code you can get the current date in a variable:
<? $today = date("F j, Y, g:i a"); ?> Today is: <?=$today?>
More tutorial on PHP date are available at: http://www.roseindia.net/tutorial/php/php-date-function.html