I am trying to alter some code that reads one database, then inserts the reformatted data into another database.
One line of this code reads:
$cart->due_date = TODAY();
This inserts today's date into the new database as : 2010-07-09
But if I change the line to read:
$cart->due_date = "2010-07-09";
no data is inserted.
Can someone help me understand the format of TODAY() and why I can't exchange it with "2010-07-09"
TODAY()
Moderator: General Moderators
Re: TODAY()
It's OK - I got the answer...
TODAY() is formatted as 07/09/2010
TODAY() is formatted as 07/09/2010