TODAY()
Posted: Fri Jul 09, 2010 8:18 pm
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"
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"