Date and time tags
What are date and time tags in Botize?
Date and time tags are dynamic variables that are automatically generated at the moment a task is executed. They allow you to insert updated dates and times into texts, file names, messages, or any field in an automation.
For example:
{date} → current date
{time} → current time
What basic tags are available?
Botize includes two basic tags:
{date}: Returns the current date in dd-mm-YYYY format
{time}: Returns the current time in HH:mm:ss format
Example:
Today is {date} and the time is {time}
How to get the name of the day or month?
You can use special tags to get the name of the day or month:
In English:
{{day}} → day (Monday, Tuesday...)
{{month}} → month (January, February...)
In Spanish:
{{dia}} → day (lunes, martes...)
{{mes}} → month (enero, febrero...)
Example:
Today is {{day}}, {{month}}
How to shift the time forward or backward?
You can modify the current time by adding or subtracting hours:
{time-1} → one hour earlier
{time+1} → one hour later
Botize supports values between -12 and +12 hours.
Example:
Now it's {time} and in 2 hours it will be {time+2}
How to shift the date?
You can also shift the date using:
{date-1}
{date+1}
Internally it works with hours, but it is useful to get previous or future dates.
Example:
Today: {date}
Tomorrow: {date+1}
How to format the date as you want?
You can use the tag:
{date('FORMAT')}
Where FORMAT follows PHP's date() syntax.
Examples:
{date('Y')} → year (2026)
{date('m')} → month (03)
{date('d')} → day (18)
{date('Y-m-d')} → 2026-03-18
{date('d/m/Y')} → 18/03/2026
{date('H:i')} → 14:27
{date('c')} → ISO format (2026-03-18T14:27:53+09:00)
How to get relative dates like yesterday or tomorrow?
You can use a more advanced version:
{date('FORMAT','MODIFIER')}
The modifier accepts expressions such as:
-1 day → yesterday
+1 day → tomorrow
-7 days → 7 days ago
+1 month → in one month
next Monday → next Monday
Examples:
{date('d/m/Y','-1 day')} → yesterday
{date('d/m/Y','+1 day')} → tomorrow
{date('Y-m-d','next Monday')} → next Monday
Practical usage examples
You can combine tags with plain text:
Natural sentence:
Today is {{day}} {date('d')} of {{month}} {date('Y')}
File name:
backup_{date('Y-m-d')}_{date('H-i-s')}
Date range:
From {date('Y-m-01')} to {date('Y-m-t')}
Timezone of the tags
All date and time tags use the timezone configured in the task step.
This means you don't need to manually convert anything. Just make sure the timezone is correctly set in that step.
Recommendations
Use:
{date} and {time} → for simple cases
{date('FORMAT')} → when you need a specific format
{date('FORMAT','MODIFIER')} → when you need relative dates (yesterday, tomorrow, next week...)
This last option is the most powerful and flexible.