Posted by K. on 06/08/07 12:19
Uzytkownik "PigInACage" <davide.papagno@gmail.com> napisal w wiadomosci
news:1181304225.872353.107920@p47g2000hsd.googlegroups.com...
> Hi all, I'm trying to convert a simple date from:
>
> YYYYMMDD (20060613)
>
> to
>
> DD/MM/YYYY (13/06/2006)
>
> I'm reading the date command manual but I think is not ok for this
> issue.
> Can somebody tell me what command I can use?
>
> Cheers.
>
Try this one:
$date is date variable
date('d/m/Y',strtotime($date));
Cheers
Marcin
[Back to original message]
|