How to calculate the difference between 2 date

Hi all :grinning:

I have a problem :
As you can see in my pics :

“retardTraitement”= null !

But “retardTraitement”=now() - dateLimiteCreationDuContrat !

And “dateLimiteCreationDuContrat” is not null as we can see in the pic !


I don’t know where the problem is! Can you help me please ?

Have a great day

Anis

Hi @Anis_Perso
Can you share where you implemented ““retardTraitement”=now() - dateLimiteCreationDuContrat”? Can you share your BPMN file?

Regards,
Alex

1 Like

@Anis_Perso , you can try something like below to calculate the difference between 2 date considering date and time

date and time("2024-01-01T10:00:00+01:00") - date and time("2024-01-01T08:30:00Z")