convert date to reversed date
- From: rv@xxxxxxxx ("Reinhart Viane")
- Date: Tue, 30 Jan 2007 16:30:14 +0100
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: Arpad Ray
- Re: [PHP] convert date to reversed date
- From: Fredrik Thunberg
- Re: [PHP] convert date to reversed date
- Prev by Date: RE: [PHP] time
- Next by Date: Re: [PHP] convert date to reversed date
- Previous by thread: mb_send_mail + multipart e-mail - why is this so difficult?
- Next by thread: Re: [PHP] convert date to reversed date
- Index(es):