Camunda Feel Expression on Date Calculation

@hassang - Went through responses from you on several Camunda questions and pretty impressive! Please clarify on the below

Variable A as String - “2025-03-25”
Using FEEL Expression, how to calculate the difference in days between Variable A and current date? Tried options based on your previous several posts but doesn’t seem to be working. Am using Camunda 7

Hi @Kathiravan_Sundaresa
One of possible solutions: (date("2025-02-25") - today()) / duration("P1D")
You can try it here: FEEL Playground (online) | FEEL-Scala

Regards,
Alex

1 Like

@Kathiravan_Sundaresa You can find a list of supported temporal functions here.