I have an updated field in the format mm.dd.yyyy and I have the currentDate() in sil and I need to use these two to find the number of dates between updated date an dcurrent date. But I get Unexpected error executing rule:Exception while executing SIL program >>baseline.sil<<: [SIL Error on line: 57, column: 18] Casting to INTERVAL not supported.
my code is:
date date1=parseDate("MM.dd.yyyy",updated1);
date date2=parseDate("MM.dd.yyyy ,currentDate());
number difference=date2-date1;