i am trying to insert a simple date into an access database using php.
my code looks liek this:
$today = date('m/d/Y');
$conn=odbc_connect('DVDLobby','','');
$sql="INSERT INTO tblDVD (PurchaseDate)
VALUES($today)";
$rs=odbc_exec($conn,$sql);
and it works but when i open up the db in access and look at the record that was inserted, thePurchaseDate field is 12:00:22 AM instead of 01/06/2006.
is there some other function i need to use to format it as an odbc date or something?