Using a variable in Day Difference

  1. The FormatDate method does not return an instant, but the GetMillis method expects an instant

  2. The Duration method expects instants, but the GetMillis method does not return an instant…

Read the documentation and follow the tutorial

Taifun