Tesserae

DatePicker

Description

The DatePicker is a UI component that allows users to select a date using the native browser date picker widget. As part of the Components group, it is built on top of a moment picker base, providing built-in functionality for formatting dates, handling validations, and configuring browser fallbacks. Use this component when you require users to input dates in your application.

Usage

Instantiate the DatePicker using the static helper method from Tesserae.UI. You can optionally supply a default date value and further configure the component by setting properties such as minimum and maximum selectable dates, step increments, required status, and validations. The provided sample demonstrates how to create several instances of the DatePicker with different settings.

Methods

  • WithBrowserFallback()
    • Returns: DatePicker
    • Description: Adds a pattern attribute (yyyy-MM-dd) to the underlying input element for graceful degradation when retrieving the user-selected value on older browsers.

Properties

  • Date (DateTime)
    • Description: Retrieves the current date value selected in the DatePicker component.

Samples

Comprehensive DatePicker Usage

This sample illustrates various ways of configuring the DatePicker component including setting default values, step increments, minimum and maximum constraints, disabled state, required status, error messages, and custom validations.

See also

© 2026 Tesserae. All rights reserved.