Skip to main content

About Date Variables

Written by Yuki Omori

📝 Overview

In Yoom, you can use Date Variables to automatically insert specific dates into your workflows. These variables are automatically replaced with the corresponding date when your Flowbot is executed, allowing you to use the appropriate date without updating it manually.

Date

Variable

Example

Today

#{{today_%Y-%m-%d}}

#{{today_%Y%m%d}}

#{{today_%Y/%m/%d}}

2023-11-03

20231103

2023/11/03

Yesterday

#{{yesterday_%Y-%m-%d}}

#{{yesterday_%Y%m%d}}

#{{yesterday_%Y/%m/%d}}

2023-11-02

20231102

2023/11/02

Beginning of the month

#{{beginning_of_month_%Y-%m-%d}}

#{{beginning_of_month_%Y%m%d}}

#{{beginning_of_month_%Y/%m/%d}}

2023-11-01

20231101

2023/11/01

End of the month

#{{end_of_month_%Y-%m-%d}}

#{{end_of_month_%Y%m%d}}

#{{end_of_month_%Y/%m/%d}}

2023-11-30

20231130

2023/11/30

📍 Usage Examples

1. Example: Retrieving data from the previous day

If you have a workflow that runs every morning at 9:00 AM to retrieve records from another app, you can use a date variable to specify the previous day's date automatically. By entering #{{yesterday_%Y-%m-%d}} in the field used to specify the acquisition date, Yoom will automatically use the previous day's date when the Flowbot runs.

☝️ Note: This is available only for apps that allow you to specify an acquisition date. The required value or format may vary depending on the app.

2. Example: Setting the issuance date on documents

When issuing documents automatically, you can use #{{today_%Y-%m-%d}} in the replacement string for the issue date. Yoom will automatically insert the date on which the operation is executed.

⚙️ Specifications

When viewing the execution results of an operation that uses Date Variables, keep in mind how variables are displayed:

  • Date Variables: Date variables are displayed based on the date on which you view the execution results.

  • Output: The output always reflects the actual date when the operation was executed.

📍 Example:

  • Viewing date: 2023/11/01

  • Execution date: 2023/10/04

That’s it!

You’re now ready to use Date Variables to keep your workflows up to date automatically. 🚀


📚 Related Guides

Search Keywords

date variables, dynamic dates, yesterday variable, today variable, date formatting, automated dates

Did this answer your question?