date field

How do i calculate the difference in days between to date fields using Javascript?

Dear BonitaSoft Community,

I have a little problem. I have two date field inputs and one textfield that should show the difference between the two dates.

The javascript goes like this:

Notifications