If you want to force some function not to display error, just put @ before the function. In your case, it will be something like this:
$var=@date();
But this is not a real solution. You should eliminate the errors correcting your code instead of hiding the errors ;-)