---
title: "Action set_current_date"
description: "Saves the current date and time to a dialog constant."
---

# Action `set_current_date`

> **System ID:** `action_set_current_date`

## Description

Writes the current date and time to the specified constant (or to `current_date` by default). The constant name supports placeholders.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| **default** | Date saved |

## Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `set_to` | string | no | `current_date` | Constant name for the date (placeholders) |

## Configuration example

```json
{
  "set_to": "registration_date"
}
```

## Related docs

- [Actions reference](/en/actionjail/reference/actions-reference.md)
