Hi @Sanjana12 ,
Considering your option's Data type is 'Date+time'
In workflow, fetch the option value and store it in variable as below,
vars.lastExportDate=getOption('lastExportDate');
In Query additional data or in enrichment, add the below expression to fetch the Days difference,
DaysDiff(...