converting some numbers to make them mysql date happy?
Posted: Wed Apr 12, 2006 7:10 am
Hi there, I have some variables, and an example of their content may be this:
I need to get these numbers into the mysql date format, which in this case would be "2006-09-01".
Can anyone describe what functions or tools or methods might be available to me to do this? I've had a programming break and am a bit rusty in the logic department
Any help GREATLY appreciated.
Rob
Code: Select all
$day = "1";
$month = "9";
$year = "2006"I need to get these numbers into the mysql date format, which in this case would be "2006-09-01".
Can anyone describe what functions or tools or methods might be available to me to do this? I've had a programming break and am a bit rusty in the logic department
Any help GREATLY appreciated.
Rob