How do I add two weeks to current date in templates

What I’m trying to do

Display the current date and the date in two weeks time. Also with the custom data format ddd DD/MMM

For example

  • {{date}} - {{date + addWeeks(2)}}

to display

  • Tue 01/Aug - Tue 15/Aug

Things I have tried

{{date}} and {{date.format}} etc

In the Templates core plugin you can’t.

If this is for daily (or weekly, etc.) notes, the Periodic Notes community plugin enables date math in templates for those.

Otherwise you’d need to use the Templater community plugin (I don’t know the details of how but a forum search search find posts about it).

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