Is there any way to get day-of-week for Dataview?

What I’m trying to do

I’m trying to format a date-based inline metadata field as the day of the week (ie. Monday, Tuesday etc) as a column in a Dataview.

At the moment I am just using

default(dodate, date(eow) + dur(1 d)).day as  Day

Is there any way of doing this?

You can try this:

dateformat(default(dodate, date(eow) + dur(1 d)), "cccc") as "day of the week"

But you want only the day of the week?

1 Like

perfect! Thank you so much :slightly_smiling_face:. Do you know where are the dateformat strings are documented?

Dataview uses luxon/iso format

Thanks again so much; I’ve spent hours looking for a solution to this.

Unfortunately dataview documentation has many faults. dateformat()isn’t there.

Interesting. So do you guess what the code might or something else?

I’m following other sources of information: releases changelogs, discord obsidian channel, etc. Not any magic skill! :slight_smile:

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