List:General Discussion« Previous MessageNext Message »
From:<ross Date:May 22 2007 2:46pm
Subject:a function to convert a uk date to and from mysql date
View as plain text  
Hi,

My UK dates are this format DD/MM/YYYY I want it reversed and then the seperator changed
so it becomes YYYY-MM-DD

I use this PHP at the moment

$available_from = implode('/', array_reverse(explode('-', $available_from)));

Ta,

R.

Thread
a function to convert a uk date to and from mysql dateross22 May
  • Re: a function to convert a uk date to and from mysql dateChris Boget22 May
  • RE: a function to convert a uk date to and from mysql dateEdward Kay22 May