primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.39k stars 4.59k forks source link

Accept multiple different date formats as input in p-calendar #5746

Closed orsolli closed 5 years ago

orsolli commented 6 years ago

I'm submitting a ...

[ ] bug report
[x] feature request
[ ] support request

Current behavior The input date must be written in the same format as the output format

Expected behavior The input date can be written in any of the given formats and will be parsed to the first format that fits

What is the motivation / use case for changing the behavior? The project I'm working on have a userbase that love to use the keyboard to fill out forms quickly, but also whant a readable date field. To meet the demand, a field that accepts a short date from user and displays a long readable date is needed.

cagataycivici commented 5 years ago

If more users will demand it, we'll reconsider.

dhughes-reward commented 5 years ago

Another user requesting here. This is just good UX.

randdusing commented 5 years ago

This would help a lot. I may want to display a date as 01-Jan-2019 but want to store it as 2019-01-01.

dydFreeman commented 5 years ago

Same here, it would be a really usefull feature.

MobackChetanKumar commented 5 years ago

Is there any way we can use range date selection in (PrimeNG) something like 01/08/2019 to 02/08/2019?

Janine65 commented 2 months ago

What about this CR? Did nothing happen sinse so many years, but we need this :-(