# Date

> Collect dates and times from your users with native date pickers

Source: https://edesy.in/docs/zapbot/blocks/date

The Date input block allows you to ask your user for a date. You can ask for a specific date or range and include time:

**Flow View:**

![Date input in flow](https://edesy.in/images/zapbot/blocks/inputs/date-flow.png)

**Bot View:**

![Date input in bot](https://edesy.in/images/zapbot/blocks/inputs/date-bot.png)

The input will use the native date picker depending on the device and browser used to answer the bot. For example on Firefox it looks like this:

![Date native picker](https://edesy.in/images/zapbot/blocks/inputs/date-native-picker.png)

## Format

The `Format` setting lets you customize the picked date format. Under the hood, it is done using the [date-fns](https://date-fns.org/) library. You can use any of the [formatting tokens](https://date-fns.org/docs/format) supported by the library.

Here are some examples:

```text
yyyy-MM-dd
yyyy-MM-dd HH:mm:ss
dd/MM/yy
dd/MM/yyyy HH:mm:ss
d.MM.yy
```
