Skip to content

USWDS - Feature: Allow choice of am/pm or 24-hour for Time Picker #4947

@hobbez

Description

@hobbez

Is your feature request related to a problem? Please describe.

The Time Picker component uses am/pm time. Many locales and some deparments make use of 24-hour time. Also, 24-hour time is often used for storage in databases.

Describe the solution you'd like

Attributes to set the preferred time format for display and storage (i.e., field value) supporting both am/pm and 24-hour time. For example:
data-display-format="12hour"
data-store-format="24hour"

Bonus points for a display option containing both: 16:00 | 4:00pm

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    On Hold

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions