# Date/Time Selector

The Date/Time Selector is a way of inserting time or date stamps into your form. Please note, an alternative way to do this is by using the [Auto Generate Field](/blocworx-documentation/bloc-editor/fields-tools-and-charts/dynamic-output-and-variable-components/auto-generate-field.md).

![](/files/CiskFRfdWUuxiWo8WvdQ)

It is also possible to dynamically add days to the date. This is useful for tools like expiry dates or From and To dates where you don't want to have work out the second date.

{% hint style="info" %}
Please note, as this field has advanced and progressed over several years, we are using 2 different date pickers based on the option you select.
{% endhint %}

### Initial Field Parameters

| Parameter                                                                      | Description                                                                                                                                                                                                               |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                                                                                |                                                                                                                                                                                                                           |
| Choose Option: Date/Time                                                       | Uses an older date picker and the output is the following format (example): 2021-02-07 16:23:00                                                                                                                           |
| Choose Option: Just Date                                                       | Uses a new date picker and the output is the following format (example): 07/02/2021                                                                                                                                       |
| Choose Option: Just Time                                                       | Uses an older time picker and the output is the following format (example): 16:23:00. When selected, an additional option appears: **Use Newer Time UI** — checking this switches to a more modern time picker interface. |
| Optional: Select Field that controls number of days to add to the current date | By selecting another field that will contain a numeric value, when the rules are triggered for that separate field, the current date field will add the value of that separate field. See example below.                  |
| Optional: Select the Field with the data it adds the days to                   | By default, the above adds the set number of days to the current date. However you may wish to add the days to another date field instead of adding them to the current date. This field is that other date field.        |
| Persist value in session (restores on navigation/page reload)                  | When checked, the value entered in this field will be saved to the session. If the user navigates away or reloads the page, the field will restore to the last value entered rather than resetting.                       |

### Optional: Select Field that controls number of days to add to the current date

![BEFORE: In this example, we have picked the "Add Number of Days" field for this special option. Currently with no value set the date will remain 07/02/2021 which is the one it started with.](/files/DPKHfVKnette2XRvTxPk)

![AFTER: We type 10 and hit return (to trigger the rules and actions), this subsequently adds 10 days to the "Choose Date" field.](/files/qUOyT7R2wuvuFFTAmdwQ)


---

# 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://manual.blocworx.com/blocworx-documentation/bloc-editor/fields-tools-and-charts/input-fields/date-time-selector.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.
