If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
This is a quick one for all you DB studs out there.
I'm trying to insert a date and I was using the STR_TO_DATE function but then I found out my hosting environment uses mySQL 4.0.25 which doesn't support this function.
Looking around on the web it looks like everyone just reformats the date to meet the my sql standard of YYYY-MM-DD, is that the best way to handle this or is there something more elegant?
A string as yyyy-mm-dd is the cleanest way to go. I believe there are other formats you can use with the date field but I think the yyyy-mm-dd is the easiest to "look" at.