Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Allow human-friendly date/time formats in input[date] and input[datetime-local] #11837

Open
@PawelDecowski

Description

@PawelDecowski

Currently, for example, input[datetime-local] requires the input to be in the format yyyy-MM-ddTHH:mm:s (documentation for input[datetime-local]) which in most cases is useless for end users.

The date/time inputs should allow custom formatting (while the model remains a Date object).

Activity

changed the title [-]Allow human-friendly date/time formats in input[type=date] and input[type=datetime-local][/-] [+]Allow human-friendly date/time formats in input[date] and input[datetime-local][/+] on May 8, 2015
modified the milestones: Backlog, Ice Box on May 26, 2015
Narretz

Narretz commented on May 26, 2015

@Narretz
Contributor

I agree that the current state is not pretty. I think this could be a good fit for a third-party module, though (implemented via parsers / formatters):

  • browser support is still fragmented for the date input, so many people will still use full fledged date pickers. Then again, chrome already has a date picker
  • there are many different date formats, multiplied by locales. This would be a heavy burden on the core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @PawelDecowski@Narretz

        Issue actions

          Allow human-friendly date/time formats in input[date] and input[datetime-local] · Issue #11837 · angular/angular.js