Salesforce: How to blank a date field in handlebar expression

Hello, I am trying to blank out a date field in SF. OpenAir is passing a value of 0000-00-00.

I tried blanks.. null. but the field won't update in SF.

{{#compare [Date field] "==" "0000-00-00"}}{{null}}{{else}}....

whats the correct format for null?

Hi Tom,

Try giving expression as {{#compare [date field] "===" "0000-00-00"}}{{else}}{{field}}{{/compare}}.

No need to specify anything if we want to blank out a value.

Thanks,

Santosh