How do you use DAL to write NULL to a datefield?
$tbl = $dal->Table("mytable");
$tbl->Param["rec_id"]=$mykey;
$tbl->Value["some_date"]=NULL; //doesn't work, it writes "0-0-0000" instead
$tbl->Update();
Whereas, this does work.
$sql = "UPDATE `mytable` SET `some_date` = NULL WHERE `rec_id` =".$mykey;
db_query($sql,$conn); //works
// CustomQuery($sql); //does not work, writes "0-0-0000" instead
But I was hoping to convert my SQL to DAL if I could