vue2-datepicker icon indicating copy to clipboard operation
vue2-datepicker copied to clipboard

[Feature request] Possibility to show date and time at the same time

Open jancborchardt opened this issue 3 years ago • 3 comments

What problem does this feature solve? Currently when we use the datepicker e.g. in Nextcloud Calendar, it is often confusing to people that they first have to pick a date and then a time (even though they e.g. click on the part of the input which shows the time).

What does the proposed API look like? Not sure about the API, but proposed solution for this would be to make it look like the datetime-local picker does on Chromium. That way people can pick whichever Datetime picker

That way people can set either date or time, or both at the same time, whichever people need, and it’s not a forced 2-step flow. :)

jancborchardt avatar Jan 04 '22 14:01 jancborchardt

FYI: https://codesandbox.io/s/show-date-and-time-side-by-side-1t5zw?file=/src/App.vue

mengxiong10 avatar Jan 04 '22 14:01 mengxiong10

Thanks a lot @mengxiong10! :) We will change our component to reflect that. Maybe it’s good to document this way of working so others also know it’s possible, or did we miss something?

jancborchardt avatar Jan 05 '22 13:01 jancborchardt

Are there anyway to retain the time panel value after selecting a new date? as the samples will reset the time to 12:00:00AM whenever a date is selected.

akhchan99 avatar Mar 21 '22 16:03 akhchan99