Nov 13, 202011:14 AM - edited Nov 13, 202011:17 AM
Key Advisor
Difference between dates
SOLVE
You just need this to get difference in days really:
{% set end_time = unixtimestamp(row.end_datetime) %}
{% set start_time = unixtimestamp(row.start_datetime) %}
{% set days = (end_time - start_time)//24//60//60//1000 %}
Nov 13, 202011:14 AM - edited Nov 13, 202011:17 AM
Key Advisor
Difference between dates
SOLVE
You just need this to get difference in days really:
{% set end_time = unixtimestamp(row.end_datetime) %}
{% set start_time = unixtimestamp(row.start_datetime) %}
{% set days = (end_time - start_time)//24//60//60//1000 %}
I don't think JS would work in this case as the data is being stored in HubDB and I'm not sure if you can pull data in from this using JS. Also I'm more comfortable with HubL over JS.