You could put it in as a string value (FunctionParameter.STRING) . The easiest way to construct a date in your code would be to create a string as follows:
myBarDate = month(0)+"/"+day(0)+"/"+year(0);
This is convenient since you could then compare them directly.
Comment