# Dynamic Variables

Within [templates](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/beginner-to-advance-features/templates "mention"), and [queries](https://unofficial-logseq-docs.gitbook.io/unofficial-logseq-docs/queries "mention")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]]
