Simple PHP pretty date time now!
Sometimes I just wanna print a date and time in PHP quickly. I’m forever going off to read up about PHP’s date() function to find the proper date format string to use.
So, to save time, here is a little handy code snippet that does that job:
<?php
echo “Date and Time now”. date(”D j M o, H:i:s”);
?>
Prints:
Date and Time now Sat 3 Jul 2010, 16:44:50
——

July 12th, 2011 at 10:06 am
dude that dates not pretty!!