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

——

One Response to “Simple PHP pretty date time now!”

  1. Wd Says:

    dude that dates not pretty!!

Leave a Reply