> For the complete documentation index, see [llms.txt](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/intermediate-to-advance-features/dynamic-variables.md).

# Dynamic Variables

Within [Templates](/unofficial-logseq-docs/beginner-to-advance-features/templates.md), and [Queries](/unofficial-logseq-docs/queries/simple-queries.md)it is possible to use Dynamic Variables.&#x20;

Dynamic Variables are syntax that allows you to replace a placeholder with, say, today's date.&#x20;

To use it, you need to use:`<% sample text %>.` Replace the sample text with the following:

* `today` => \[\[Today's journal page]]
* `yesterday` => \[\[Yesterday's journal page]]
* `tomorrow` => \[\[Tomorrow's journal page]]
* `time` => Current time, e.g. 22:44
* `Last Friday` => \[\[last Friday's date]]
* `current page` => \[\[Current page]]
