Hello
I am working on a flow, I need to convert the input date to EPOCH and I am using the following expression:
div(sub(ticks(outputs('Get_a_row_by_ID')?['body/sag_contractdate']),ticks('1970-01-01Z00:00:00')),10000)
it's working fine when I have a date value, but if my input is EMPTY or NULL I get the following error

Any help would be much appreciated
Thanks!
Dominic