Anatomy
Date Field Yearless Range consists of seven primary elements that enable users to select a start and end date without year information.
- Label - Identifies the field and its purpose
- Start date input - Text input for manual start date entry with format mask
- End date input - Text input for manual end date entry with format mask
- Helper text (Optional) - Description, format hint or error message
Options
Date Field Yearless Range supports the following configurations to accommodate different use cases and regional preferences.
Date Field Yearless Range supports two date format modes to match regional conventions. The default format is mm/dd for US audiences, while dd/mm is available for international users.
| Mode | Format | Use Case |
|---|
| mm/dd | Default | US date format |
| dd/mm | Optional | International date format |
Sizes
Three size options accommodate different layout densities and visual hierarchies.
| Size | Height |
|---|
| Small | 32px |
| Medium | 40px |
| Large | 48px |
Date Picker
The date picker can be disabled when manual text entry is preferred or when the picker interface is not suitable for the use case.
Behavior
Date Field Yearless Range responds to user interaction with distinct visual states and validation feedback.
Visual States
The component displays different visual states to communicate field status and interactivity. Default state shows both fields ready for input. Focus state highlights the active field. Error state displays validation messages when date ranges are invalid, start dates are after end dates, or required fields are empty. Disabled state prevents interaction while maintaining visual context.
Date Picker Interaction
Clicking either input field opens a popover with two scrollable lists for month and day selection. Users can scroll through months and days and select values directly from the lists. The picker closes automatically after selection, and the selected month and day populate the respective input field.
Validation
Date Field Yearless Range validates input in real time. The component checks for parseable month and day values, required field completion, date constraints (min/max dates), unavailable dates, and logical range validation (start date must be before or equal to end date). Error messages appear below the fields when validation fails.
Usage Guidelines
When to Use
Use Date Field Yearless Range when you need to:
- Capture recurring date ranges where year is irrelevant
- Select seasonal periods or annual date ranges
- Input date ranges for recurring annual events
- Create date range templates for annual use
When not to use
Avoid using Date Field Yearless Range for:
Alternatives
Date Field Yearless Range vs Date Field Range
Use Date Field Yearless Range when the year is irrelevant to the date range selection, such as recurring seasonal periods or annual date templates. Use Date Field Range when the year is essential, such as project timelines or reporting periods.
How to Use
Labeling and Yearless Range Validation
Provide clear, descriptive labels that communicate the purpose of the date range selection and indicate that year information is not required. Labels should clarify that only month and day ranges are needed, helping users understand why year input is omitted. Implement validation that ensures logical date ranges and provides immediate feedback when constraints are violated.
- Write labels that clearly communicate the purpose and indicate year is not needed
- Include format hints to guide users on expected input format (mm/dd or dd/mm)
- Set appropriate date constraints (min/max dates) when applicable to prevent invalid selections
- Validate that start date is before or equal to end date
- Display validation errors immediately when they occur
- Use Date Field Yearless Range for recurring date ranges where year context is not needed
- Maintain consistency when using yearless ranges alongside year-specific ranges in forms
Anti-pattern: Ambiguous Context and Invalid Ranges
Avoid creating confusion by using Date Field Yearless Range for ranges that require year information or allowing invalid date ranges without clear feedback.
- Use Date Field Yearless Range for date ranges that require year information
- Omit format hints when the date format might be ambiguous to users
- Hide validation errors until form submission
- Allow start dates to be after end dates without clear error messaging
- Use placeholder text to communicate date format instead of format hints
- Mix yearless date ranges with year-specific date ranges in the same form without clear visual or contextual distinction
- Create labels that don’t indicate year is not required
Content
Content within Date Field Yearless Range should be clear, concise, and actionable.
- Labels should clearly indicate what date range is being selected and that year is not required
- Error messages should explain why a date range is invalid and how to fix it
- Format hints should match the selected mode (mm/dd or dd/mm)
- Descriptions should provide context without overwhelming the user
Keyboard Interaction
Users can navigate Date Field Yearless Range using standard keyboard controls.
| Key | Description |
|---|
| Tab | Moves focus between start and end date inputs |
| Shift + Tab | Moves focus to the previous element |
| Arrow Down | Opens the date picker when focused |
| Esc | Closes the date picker |
Date Picker
| Key | Description |
|---|
| Arrow Up | Moves focus to the previous item in the list |
| Arrow Down | Moves focus to the next item in the list |
| Esc | Closes the date picker |
Accessibility
Date Field Yearless Range includes built-in accessibility features. The component uses semantic grouping to associate the start and end date inputs. The component supports full keyboard navigation and screen reader compatibility. Ensure labels are descriptive and error messages are clear for assistive technology users.
For more guidance on form field labels and context, see input field context association best practices. Last modified on January 23, 2026