Date formatting in web clipper template

What I’m trying to do

I am trying to create a template in the web clipper that includes the date the page was clipped as a link and in yyyy-MM-DD format. E.g., [[2024-10-24]]

Things I have tried

[[{{date:yyyy-MM-DD}}]]
[[{{date}}:yyyy-MM-DD]]

I looked at the documentation here: GitHub - obsidianmd/obsidian-clipper: Official web clipper extension for Obsidian.

And that suggests the first one would work, but it does not. Thanks!

Does the syntax below work in your template?

[[{{date|date:"YYYY-MM-DD"}}]]

Note the use of uppercase letters. See:

  1. GitHub - obsidianmd/obsidian-clipper: Official web clipper extension for Obsidian.

  2. Format · Day.js

2 Likes

That works - thank you! I look right at the part you highlighted but guess I couldn’t figure it out.

1 Like

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