Skip to content
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 opened this issue May 8, 2015 · 1 comment

Comments

@PawelDecowski
Copy link

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).

@PawelDecowski PawelDecowski 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] May 8, 2015
@Narretz Narretz modified the milestones: Backlog, Ice Box May 26, 2015
@Narretz
Copy link
Contributor

Narretz commented May 26, 2015

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants