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.

Arguments

  • 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.

Examples

Retrieves tomorrow's date.

Arguments

  • format: The format for the date. Defaults to "YYYY-MM-DD". Refer to format reference.

Examples

Arguments

  • 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, 0 will be Monday, -7 will 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.

Examples

Retrieves yesterday's date.

Arguments

  • format: The format for the date. Defaults to "YYYY-MM-DD". Refer to format reference.

Examples

Templater gives you access to the moment object, with all of its functionalities.

More information on moment.js here.

Examples

Last updated