> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/tutorials/components/date-picker/display-a-date-picker-with-marked-dates-from-a-get-records.md).

# 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

* 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.
  * 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 url="<https://app.arcade.software/share/3V3KHAVTEQZcKh9mmORD>" flowId="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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` 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>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
