Get weekday from date in properties

Hi everyone!

What I’m trying to do

I have a due date property, currently formatted as date type, for certain projects. If the due date given falls on a weekend or public holiday, it’s actually the next working day. I currently just look at a calendar and enter the correct date but it just occurred to me that it would be handy if I could automate this. Two options came to mind:

Ideal (but probably tricky): Obsidian checks the date entered against a calendar that includes public holidays for my area and changes it automatically (or flags it) if it’s on a Saturday, Sunday or public holiday.

Easier (I guess) and only automates one part but still helpful: Obsidian adds the weekday to the date.

Things I have tried

I tried searching in the forum and on reddit but haven’t found anything that seemed helpful.

Hi.

Where do you want Obsidian to add the day of the week? In properties?

If you use the Dataview plugin, you could do something along the lines of the image below. Here is the raw data:

---
DueDate: 2025-03-31
Project: XYZ
---

Project due: `=dateformat(this.DueDate, "cccc, dd MMMM yyyy")`

```dataview
TABLE WITHOUT ID
link(file.name, Project) As Project
, dateformat(DueDate, "cccc, dd MMMM yyyy") As Due
WHERE project
```

I might have misunderstood :flushed:

And how do you add your property? Using Templater? Manual writing?

Manually. I don’t use Templater and I don’t want to add a new plugin to my vault for this.

Thank you! That does help. Having the day in the properties as such would be even better, though :smiley:

1 Like