function BindDate($d) { $d = ADOConnection::DBDate($d); if (strncmp($d,"'",1)) return $d; return substr($d,1,strlen($d)-2); }