Back

Calendar

Default

Pre-selected Date

With Min & Max Constraints

Only dates within the current month are selectable.

Usage

@display.Calendar(display.CalendarProps{
    Name:  "date",        // hidden input name for form submission
    Value: "2026-03-15",  // pre-selected date (YYYY-MM-DD)
    Min:   "2026-03-01",  // optional minimum selectable date
    Max:   "2026-03-31",  // optional maximum selectable date
})