Change current date format

I have a main dashboard where i want to include a link to the current day’s daily note. I have my daily notes in the format DD-MM-YYYY. I tried using “Templates: Insert current date” but it automatically uses the format YYYY-MM-DD, so it “links” to a non existing note. Is there a way for me to change this without having to change my daily’s format?

What I’m trying to do

Change the current date format for a link from a note.

  1. Are you using Dataview for pulling the current day’s daily note?

  2. If you are, and if you’re up for downloading plugins, I’d recommend Templater for this! You could use a Templater string in your query:
    <% moment(tp.file.title, "DD-MM-YYYY").format("YYYY-MM-DD")
    That’s what I did before I ended up changing my daily note format to make things easier.

Just change the date format of Obsidians core template plugin. Go to Obsidians Settings>(Core plugins) Template>date format, add “DD-MM-YYYY”

Thanks, this was exactly what I needed

1 Like