If no parameters are passed to an HTML view, the parameter will be set as “null“. Add the following code to your HTML view, to set the parameter to current date, if the parameter is equal to “null”.
if (input.parameter == null)
{
input.parameter = zoho.currentdate.toString();
// As parameter is a string value, the date is converted to string
}