---
title: "Calendar"
description: "Pause and collect a date, time, range, or several dates."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/in/datetime"
---
# Calendar

> Pause and collect a date, time, range, or several dates.

<block-meta block="Yes" channels="Chat" folder="basic/input" group="Input" groupTo="/build/workflows/blocks/in" hitl="Yes" icon="i-lucide-calendar" pipe="Value" scope="Any" tool="No" type="in.datetime">



</block-meta>

**Calendar** (palette name **Calendar**) asks the person in a **chat** session to pick a date and/or time, then continues. **Time** only supports **Single** selection. Shared bind, navigation, and error options are on [Input](https://docs.vettero.com/build/workflows/blocks/in).

For typed datetime without a picker, use [Text](https://docs.vettero.com/build/workflows/blocks/in/text) with **Input Type** DateTime.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Type
      </strong>
    </td>
    
    <td>
      <strong>
        Date
      </strong>
      
      , <strong>
        Time
      </strong>
      
      , <strong>
        Date & Time
      </strong>
      
      , <strong>
        Month
      </strong>
      
      , or <strong>
        Year
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Selection Mode
      </strong>
    </td>
    
    <td>
      <strong>
        Single
      </strong>
      
      , <strong>
        Multiple
      </strong>
      
      , or <strong>
        Range
      </strong>
      
       (range and multiple are disabled for <strong>
        Time
      </strong>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Time Format
      </strong>
    </td>
    
    <td>
      <strong>
        12hr
      </strong>
      
       or <strong>
        24hr
      </strong>
      
       (time and date-time only)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Format
      </strong>
    </td>
    
    <td>
      Display / parse pattern (for example <code>
        YYYY-MM-DD HH:mm:ss
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Validation
      </strong>
    </td>
    
    <td>
      <strong>
        Any
      </strong>
      
      , <strong>
        Past
      </strong>
      
      , <strong>
        Future
      </strong>
      
      , <strong>
        Past Including Present
      </strong>
      
      , or <strong>
        Future Including Present
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Prompt
      </strong>
    </td>
    
    <td>
      Optional message before the picker
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Error Handler
      </strong>
      
       / <strong>
        Navigation
      </strong>
      
       / <strong>
        Binding Variable
      </strong>
    </td>
    
    <td>
      Shared input options
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after a selection (or skip / ignore)
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). Each date part is an object with these keys:

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        timestamp
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Unix timestamp
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        iso
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      ISO datetime
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        format
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Formatted string from <strong>
        Format
      </strong>
    </td>
  </tr>
</tbody>
</table>

<table>
<thead>
  <tr>
    <th>
      Selection
    </th>
    
    <th>
      Shape
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Single
      </strong>
    </td>
    
    <td>
      One date-part object
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Range
      </strong>
    </td>
    
    <td>
      Object with <code>
        from
      </code>
      
       and <code>
        to
      </code>
      
       (each a date part)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Multiple
      </strong>
    </td>
    
    <td>
      List of date-part objects
    </td>
  </tr>
</tbody>
</table>

If **Binding Variable → Key** is set, the same value is stored under that name.

When you write a range or date-part object into a [table](https://docs.vettero.com/data/tables), column keys must match exactly (`from`, `to`, `timestamp` — not `From` or `Timestamp`).

## Use case

- Book a single appointment or a date range.
- Collect a month or year for a report window.
- Reject past dates with **Validation**.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
