# Date and time

You can display a date, time or datetime to your user taking into account your user's date/time formats, as well as their timezone using the dateTime element.

## Tags

| Tags                                                                          | Description                                                                       | Attributes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `<dateTime value="2024-12-31T09:29:47Z" format="date \| time \| time_secs"/>` | Display a date or time to the user, taking into account the user locale timezone. | <p></p><ul><li>value (required): ISO-8601 or UTC timestamp.</li><li><p>format:</p><ul><li>date\_time: date + time format based on user settings and user timezone. Default value if no format is provided</li><li>date : ddMMyyyy with format based on user settings (DD/MM/YYYY, MM/DD/YYYY, YYYY/MM/DD) and user timezone</li><li>time : hhmm with format based on user settings (12h / 24h) and user timezone</li><li>time\_secs : hhmmss with format based on user settings (12h / 24h) and user timezone</li></ul></li></ul> |

{% hint style="info" %}
This element is read-only - if you want an interactive element instead, you can use a [Date Picker](/bots/messages/overview-of-messageml/symphony-elements-1/date-picker.md) or [Time Picker](/bots/messages/overview-of-messageml/symphony-elements-1/time-picker.md) in a chat.
{% endhint %}

## Versions and Compatibility

| Main features introduced | Agent needed to parse message sent by the bot |
| ------------------------ | --------------------------------------------- |
| Initial release          | Agent 25.6                                    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.developers.symphony.com/bots/messages/overview-of-messageml/messageml-basic-format-tags/date-and-time.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
