Thread: PHP dates
View Single Post
  #8 (permalink)  
Old Sep 5th, 2007, 09:54
jimz jimz is offline
Reputable Member
Join Date: Feb 2006
Location: London
Age: 25
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Re: PHP dates

There's a simlpler way to do this:
PHP: Select all

<?php echo date('d/m/y'strtotime($row_entry['EntryDate'])); ?>

This would output, for example, something like this:
30/12/07

have a look at 'Paramaters' to see how to format the date:
http://uk2.php.net/manual/en/function.date.php
Reply With Quote