Template front meta: Creating a timedelta field

What I’m trying to do

I would like to create a timedelta field in a template that I use for notes for a project I am currently working on. Currently my front meta looks like this:

Obsidian_meta_timedelta

What I’d like to be able to do is replace the "Week 4" with a variable that is essentially a timedelta that takes the current date, subtracts a starting date, and gives me a correct week number based on the current week.

I know I can write a script for this to generate my note (and I may need to do that). I’m just curious if there is a way to do this within an Obsidian template, particularly a field in my front matter?

I’m not that familiar with JavaScript (I’m a Python person), so it’s very possible I’m missing something obvious to someone who is familiar with JS and how we can use it in Obsidian.

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