Obsidian Templater plugin
Last updated
Last updated
This module contains every internal function related to dates.
Function documentation is using a specific syntax. More information .
Retrieves the date.
format
: The format for the date. Defaults to "YYYY-MM-DD"
. Refer to .
offset
: Duration to offset the date from. If a number is provided, duration will be added to the date in days. You can also specify the offset as a string using the ISO 8601 format.
reference
: The date referential, e.g. set this to the note's title.
reference_format
: The format for the reference date. Refer to .
Retrieves tomorrow's date.
weekday
: Week day number. If the locale assigns Monday as the first day of the week, 0
will be Monday, -7
will be last week's day.
reference
: The date referential, e.g. set this to the note's title.
Retrieves yesterday's date.
Templater gives you access to the moment
object, with all of its functionalities.
format
: The format for the date. Defaults to "YYYY-MM-DD"
. Refer to .
format
: The format for the date. Defaults to "YYYY-MM-DD"
. Refer to .
reference_format
: The format for the reference date. Refer to .
format
: The format for the date. Defaults to "YYYY-MM-DD"
. Refer to .
More information on moment.js .