I am importing date values from the excel table and there is the possibility some dates are empty/null/blank.
I have created flow and it works fine with other fields but when it comes to date it is giving me following error:
addDays('1899-12-30',int(items('Apply_to_each')?['DOB']),'yyyy-MM-dd')
addDays('1899-12-30',int(items('Apply_to_each')?['DOB']),'yyyy-MM-dd')
if(equals(item()?['DOB'], null), '', formatDateTime(item()?['DOB'],'yyyy-MM-dd'))
if(equals(item('Apply_to_each')?['DOB'], ''), null, addDays('1899-12-30', int(item()?['DOB']), 'mm/dd/yyyy'))
if(empty(replace(item()['DOB']),'"','')),null,addDays('1899-12-30',int(replace(item()['DOB']),'"','')),'MM/dd/yyyy'))
In excel and SharePoint list, the name of the field DOB and it is created with default parameters.


In excel date format is mentioned below:


Steps by Step will be highly appreciated.
Thanks in advance.
Tushar Mehta