Jump to content


This topic is now archived and is closed to further replies.


Does mysql 4.0.15 support date()?

Recommended Posts

Hi guys,

I got mysql 4.0.15 running on my computer, but 4.1.16 running on the network in the office. I used to design the site on my computer, then transfer it over to the office server, and everything was working fine.

Then my personal comp got wiped, I reinstalled the local server, and now the mysql queries arent working anymore.

I've narrowed the problem down to the date() function. if I do
I get a query syntax error. but if I just do
everything works, but I get the whole timestamp instead of just the date.

Everything on the office server still works just as it should, but I would really like to get it up and running properly on my personal comp too, so...

Does mysql 4.0.15 support the date() function?
Why did it work before the wipe, but not after, even though everything should be the same still?
Is there anything I can do to get it running on the personal comp? I really don't want to change the coding if it should be working properly but isnt due to a server problem.


Share this post

Link to post
Share on other sites
[quote=MySql manual]
Extracts the date part of the date or datetime expression expr.
mysql> SELECT DATE('2003-12-31 01:02:03');
        -> '2003-12-31'

DATE() is available as of MySQL 4.1.1.

So if I can find it in the manual, why can't you?


Share this post

Link to post
Share on other sites
In the meanwhile, you can use EXTRACT(), AFAIK.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.