Dataview : help converting date remaining (months, weeks) to days (countdown)

Trying to do a day countdown with this code:

TABLE duedate, duedate - date(today) as time
where duedate != null

but the output is something like “2 months, 2 weeks, 6 days” , would like to convert this, to only days , like “72 days”

Any tips, thanks in advance !

solved:
TABLE duedate, (duedate - date(today)).day as time
where duedate != null

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.