> ## Documentation Index
> Fetch the complete documentation index at: https://docs.less.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Relative Date

> Get the current date and time

The Relative Date tool lets you select a timezone and format and then return current date and time in that timezone. The tool is dynamic and will always return the date and time of when the tools is run - also when the models runs on a schedule.

### Configuration

<Steps>
  <Step title="Column name">
    The Today tool will create a new column. Use this input to name it.
  </Step>

  <Step title="Select format">
    Select the format that you want the current date and time to be formatted
    in. You can choose between the following formats:

    * *Now*: outputs the current date and time
    * *Now (date)*: outputs the current date (at midnight, i.e. without the specific time)
    * *Now (time)*: outputs the current time
    * *Yesterday*: outputs the current datetime minus 1 day (i.e. yesterday at this specific time)
    * *One week ago*: outputs the current datetime minus 1 day
    * *One month ago*: outputs the current datetime minus 1 month
    * *One year ago*: outputs the current datetime minus 1 year
  </Step>

  <Step title="Select timezone">
    Select the timezone that you want the current date and time to be formatted
    in. All timezones are available in the dropdown.
  </Step>
</Steps>

### Example

In this example, we want a reference date that always references one week ago in GMT+01:00 (CET). Note the current date and time is 2025-09-25 19:54:00 in CET whereby we get a result of 2025-09-18 19:54:00 in CET.

<Frame>
  <img src="https://mintcdn.com/less-51/qnh8gNMWMbLC5eFp/images/tools/relative-date/Example.png?fit=max&auto=format&n=qnh8gNMWMbLC5eFp&q=85&s=6a35ce6196755a84986f9a80c51f4e77" alt="Parameter" width="3972" height="2766" data-path="images/tools/relative-date/Example.png" />
</Frame>
