# Display a date picker with Marked Dates from a Get Records

## Overview

This tutorial displays a date picker component showing marked dates from a Get Records collection. This feature will help users quickly visualize important dates retrieved from the Get Records collection while interacting with the date picker.

In this example, we will use dates from the Task object as marked dates.

<figure><img src="/files/iXAxZJwOxmernEe9jq9z" alt="" width="297"><figcaption><p>FInal result</p></figcaption></figure>

## Steps

### Step 1: Create the Get Records collection

Create a Get Records collection to fetch all Tasks

### Step 2: Add the Avonni Action&#x20;

* Add the Avonni Action “SObject Collection to Marked Date”

<figure><img src="/files/hpL8zf8XKXZsyjnVis0g" alt=""><figcaption></figcaption></figure>

* Select the previously created source collect and add the field name associated with the date. Here, we are selecting the field “**Due Date**”.

<figure><img src="/files/FNrVsQVnL8oDwSlsH39F" alt=""><figcaption></figcaption></figure>

* Now, let's create the variable.&#x20;
  * Expand the Advanced Accordion.
  * Check "**`Manually Assign variables`**"
  * From the Output field, create **a new resource**
  * Select **`Variable`** as a resource type
  * Enter an API Name
  * Select "**`Apex-Defined`**" as Data Type
  * Check "**`Allow multiple values (collection)`**"
  * In the Apex Class field, select "**avcmpbuilder\_CalendarMarkedDate**"
  * Click "Done"

{% @arcade/embed flowId="3V3KHAVTEQZcKh9mmORD" url="<https://app.arcade.software/share/3V3KHAVTEQZcKh9mmORD>" %}

### Step 3: create a screen component

1. Drag the Date Picker component and open the Component Builder
2. Link the MarkedDate field to the Action “SObjectColleciton…” created in step 2.

<figure><img src="/files/U9NiFs7nlo9Ezu9RziGK" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Bq8OSM6d79wBkouVw2Nh" alt=""><figcaption></figcaption></figure>

And voila !


---

# 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.avonnicomponents.com/flow/tutorials/components/date-picker/display-a-date-picker-with-marked-dates-from-a-get-records.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.
