Duration calculation in datalist

Confluence User - 11 Feb, 2022

Dear Experts,


Is there any way to calculate days duration between 2 dates in datalist ?


datalists

1


14 Feb, 2022
confluenceUser
confluenceUser

Hi, it depends on what binder you used to retrieve the data in the datalist. If you are using SQL in a JDBC binder, then you could use a database function like https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_datediff. Otherwise you could use client JavaScript to perform calculations like in Calculate the duration between 2 given dates - custom HTMLHow to calculate date range between from date & To Date or how to calculate date difference?.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print