Help with dataview inline query

What I’m trying to do

I’m using the following dataview inline DQL to show todays day name:
= dateformat(date(today), "cccc")
This works fine, and also for tomorrow, but I also need it for like in two days - so I basically need a function that can add x amount of days to date(today). Is this even possible?
I have also tried to use something like this: $="today").toFormat("yyyy-MM-dd")

Can anyone give me a pointer to how to do this or if it is at all possible?

dur() function can help for dataview time arithmetic:

=dateformat(date(today)+dur(3 days),"cccc")


1 Like


`${days: 2}).toFormat('yyyy-MM-dd')`
1 Like

Thanks, worked great :slight_smile:

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