input null to a functions - get an error

input null to a functions - get an error

Hi Zoho,

I have a function, with few variables including a date variable.
I have a script in the function for cases the date variable is null.
On some cases when I use the function - I have no date variable - meaning it's null.
When I write

Date01=null;
thisapp.function(var01,var02,Date01);

I get an error:
Mismatch data type for function 'CreateSolveDeleteFnA' at argument index 15 expected data type TIMESTAMP found data type NULLTYPE

How can I enter a null variable ?

Ravid