Manipulate {{date}} in Template

Use case or problem

I’m trying to reference tomorrow, relative to today (or one week forward) using the {{date}} in a template.

Proposed solution

Allow Moment.js manipulate somehow with a parameter for the {{date}}. Something like {{date?add=7}} (e.g. for next week).

I think the Templater plugin might help you there :blush: .

From the documentation of the plugin you can define an offset for the date (the example for the offset in the doc is -7, so for last week) but I never used that one.

I only used this plugin for tomorrow, creation date and last modified :blush:

Perfect! and thanks. Maybe this will be in the next update out of the box.

1 Like