[PHP - MySQL] Date conversion code
Posted: Thu Jun 25, 2009 10:34 am
Hi
I'm hoping for a little help here.
I'm writing a very simple database app (using MySQL). I need the PHP code to be able to take a date like 25/6/09 and convert it into whatever format is needed by MySQL.
This is where I need the help. I've looked around a bit and have found stuff that will handle 25/06/2009 but I'd like the code to be more forgiving. Unfortunately, I've found no suitable examples.
Any help/links/code is greatly appreciated.
Thanks in advance
I'm hoping for a little help here.
I'm writing a very simple database app (using MySQL). I need the PHP code to be able to take a date like 25/6/09 and convert it into whatever format is needed by MySQL.
This is where I need the help. I've looked around a bit and have found stuff that will handle 25/06/2009 but I'd like the code to be more forgiving. Unfortunately, I've found no suitable examples.
Any help/links/code is greatly appreciated.
Thanks in advance