Re: [PHP] convert date to reversed date
- From: arpad@xxxxxxxxxxx (Arpad Ray)
- Date: Tue, 30 Jan 2007 15:41:51 +0000
$filename = implode(array_reverse(explode('/', $value)));
Arpad
Reinhart Viane wrote:
Is this a good way to convert 01/02/2007 to 20070201.
$value='01/02/2007';
list($day, $month, $year) = split('[/.-]', $value);
$filename=$year.''.$month.''.$day;
It does work but i would like to verify if there are no better, more logical
ways to do this.
Thanks in advance
- Follow-Ups:
- Re: [PHP] convert date to reversed date
- From: Jim Lucas
- Re: [PHP] convert date to reversed date
- References:
- convert date to reversed date
- From: "Reinhart Viane"
- convert date to reversed date
- Prev by Date: RE: [PHP] convert date to reversed date
- Next by Date: return bounced email to specific email address
- Previous by thread: RE: [PHP] convert date to reversed date
- Next by thread: Re: [PHP] convert date to reversed date
- Index(es):