CalendarDatePicker
A Fluent calendar date picker: a button showing the selected date, which opens a calendar to pick another.
Example:
fluent.CalendarDatePicker(placeholder="Pick a date")

Inherits: LayoutControl
Properties
blackout_dates- Dates that can't be selected, such as holidays.close_on_selection- Whether the calendar closes when the user picks a date.first_date- The earliest date that can be selected.first_day_of_week- The day the weeks start on:1for Monday through7for Sunday.highlight_today- Whether today's date is highlighted.last_date- The latest date that can be selected.placeholder- The text shown while no date is selected.selection_color- The color of selected dates.value- The selected date.
Events
on_change- Called when the user picks a date.
Example
Fluent CalendarDatePicker
from datetime import date
import flet_fluent_ui as fluent
import flet as ft
def main(page: ft.Page):
page.title = "Fluent CalendarDatePicker"
def handle_change(e: ft.Event[fluent.CalendarDatePicker]):
# A picked date arrives in UTC: convert it to the local date.
day = e.control.value.astimezone()
status.value = f"Delivery on {day:%A, %B} {day.day}"
status = ft.Text("Delivery on Wednesday, May 14")
page.add(
ft.SafeArea(
content=ft.Column(
controls=[
fluent.CalendarDatePicker(
key="delivery",
value=date(2025, 5, 14),
first_date=date(2025, 5, 5),
# No deliveries on public holidays.
blackout_dates=[date(2025, 5, 26)],
on_change=handle_change,
),
status,
],
)
)
)
if __name__ == "__main__":
ft.run(main)

Properties
blackout_datesclass-attributeinstance-attribute
blackout_dates: list[DateTimeValue] = field(
default_factory=list
)Dates that can't be selected, such as holidays. They are shown struck through.
close_on_selectionclass-attributeinstance-attribute
close_on_selection: bool = TrueWhether the calendar closes when the user picks a date.
first_dateclass-attributeinstance-attribute
first_date: DateTimeValue | None = NoneThe earliest date that can be selected. Earlier dates are shown greyed out.
first_day_of_weekclass-attributeinstance-attribute
first_day_of_week: int | None = NoneThe day the weeks start on: 1 for Monday through 7 for Sunday.
If None, it depends on the locale.
highlight_todayclass-attributeinstance-attribute
highlight_today: bool = TrueWhether today's date is highlighted.
last_dateclass-attributeinstance-attribute
last_date: DateTimeValue | None = NoneThe latest date that can be selected. Later dates are shown greyed out.
placeholderclass-attributeinstance-attribute
placeholder: str | None = NoneThe text shown while no date is selected.
If None, a localized "Pick a date" is shown.
selection_colorclass-attributeinstance-attribute
selection_color: ColorValue | None = NoneThe color of selected dates.
If None, the accent color of the theme is used.
valueclass-attributeinstance-attribute
value: DateTimeValue | None = NoneThe selected date.
After the user picks a date, it holds a datetime in UTC for midnight
local time: use value.astimezone() to get the local date.
Events
on_changeclass-attributeinstance-attribute
on_change: (
ControlEventHandler[CalendarDatePicker] | None
) = NoneCalled when the user picks a date.
value holds the new date.