|  | Posted by NC on 06/18/72 11:49 
Des wrote:>
 > I am displaying records from a table including a stored date. When
 > display $row[Date], i get the obvious 2006-05-21.  However this is not
 > what the guy wants. He wants 21-May-2006.
 
 First of all, make it a habit to write $row['Date'], not $row[Date].
 The latter works for now, but may stop working in the future without
 warning.  This said, the code snippet you are looking for can look like
 this:
 
 date('j-M-Y', strtotime($row['Date']))
 
 Cheers,
 NC
 [Back to original message] |