Obsidian Templater plugin
This module contains every internal function related to dates.
Function documentation is using a specific syntax. More information here.
Retrieves the date.
format: The format for the date. Defaults to"YYYY-MM-DD". Refer to format reference.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 format reference.
Retrieves tomorrow's date.
format: The format for the date. Defaults to"YYYY-MM-DD". Refer to format reference.
format: The format for the date. Defaults to"YYYY-MM-DD". Refer to format reference.weekday: Week day number. If the locale assigns Monday as the first day of the week,0will be Monday,-7will be last week's day.reference: The date referential, e.g. set this to the note's title.reference_format: The format for the reference date. Refer to format reference.
Retrieves yesterday's date.
format: The format for the date. Defaults to"YYYY-MM-DD". Refer to format reference.
Templater gives you access to the moment object, with all of its functionalities.
More information on moment.js here.
Last updated