Simple PHP Today Script

Status
Not open for further replies.

drexxo

Solid State Member
Messages
6
Location
United States
For some more "script kiddies"

Code:
<?php
// Assuming today is December 8th, 8:05 pm, and that we are in the
// Eastern Daylight Time (EDT) Time Zone

$today = date("F j, Y, g:i a");                 // December 8th, 2010
$today = date("m.d.y");                         // 10.08.10
$today = date("j, n, Y");                       // 8.10.10
$today = date("Ymd");                           // 2010108
$today = date('\i\t \i\s \t\h\e jS \d\a\y.');   // it is the 8th day.
$today = date("D M j G:i:s T Y");               // Tue. Dec. 08 8:04:17 (EDT)
?>

Feel free to use it.
 
Status
Not open for further replies.
Back
Top Bottom