View Single Post
Old 15-09-2008, 09:03   #7 (permalink)
combatsheep
trained to kill
 
combatsheep's Avatar
 
Join Date: Apr 2008
Location: Liverpool, UK
Posts: 134
Send a message via MSN to combatsheep
PHP Code:
<?php
$date 
strtotime("11/04/1984"); // could be your sql result or timestamp

$day date('jS',$date);
$month date('F',$date);
$year date('Y',$date);


echo 
"My birthdate is the $day of $month , $year";
?>

Remember date() accepts US dates by default so 4/11/1984 in US is 11/04/1984.

look at php.net/date for formatting options.
  Reply With Quote