DatePicker - More Options #4154
Replies: 2 comments
-
|
Hey @w41x, This could be a nice enhancement from the community if somebody wants to take it. I agree that sticking with the options that come with the component are first priority. If somebody wants a
It could be done fairly quickly I expect given the details here, nothing is too difficult here since it is all admin UI. |
Beta Was this translation helpful? Give feedback.
-
|
Also, why is there no option for firstDayOfTheWeek? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Since PayloadCMS ist using react-datepicker for the DateField, why only implement
dayAndTime,dayOnly,timeOnly, andmonthOnlyfordate.pickerAppearance, when there is also an option forquarterOnly(showQuarterYearPicker) andyearOnly(showYearPicker)?Also, it would be nice to get access to some of the other options, e.g.:
showWeekNumbers.And in that regard maybe also a
weekOnlyoption fordate.pickerAppearance? But since this is not even a feature inreact-datepicker, I doubt this would be as easy to implement as the other things.Generally speaking one could implement a precision selection (Year, Quarter, Month, Week, Day), but that's maybe overkill for the native DatePicker implementation and maybe something for a separate plugin.
I'm currently working with data, where the precision of dates often varies, i.e. for one document you know the exact date, for another document only the quarter. Thus I want to represent this with different 'precisions' to a given timestamp.
Beta Was this translation helpful? Give feedback.
All reactions