Skip to content

Add locale-aware date ordering support #58

@YuryPashkov

Description

@YuryPashkov

Description:

Currently, the date picker uses a hardcoded day/month/year order which doesn't respect user locale preferences.

Key Changes:

  • Added useLocaleOrdering flag to respect system locale date format
  • Defaults to false to maintain current behavior
  • Supports MDY, DMY, and YMD formats based on user locale
  • Includes sample implementation and tests

Motivation:

Different cultures have different conventions for displaying dates
Some locales use day-month-year (DMY) order (e.g., UK, Europe)
Others use month-day-year (MDY) order (e.g., US)
Some use year-month-day (YMD) order (e.g., East Asia)

I can do a PR that adds support for automatic locale-based date ordering while maintaining backward compatibility. What do you think about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions