ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

datepicker and meridian time

Open nicolalopatriello opened this issue 3 years ago • 12 comments

Is possibile to use datepicker (with withTimepicker input) but use also meridian settings?

I need to use timepicker with 24h

Thanks, Nicola

nicolalopatriello avatar Nov 29 '21 17:11 nicolalopatriello

This feature, along with others, were included in #6369 .

bogdandanielb avatar Nov 30 '21 06:11 bogdandanielb

Where was this implemented exactly? I did not find any commits in #6396 or in the release notes. And how can this be configured?

TheNetStriker avatar Apr 20 '22 16:04 TheNetStriker

Any update on this topic? This feature is missing in the datepicker although it is available in the timepicker. Any possibility to provide this option for the datepicker?

maxcl10 avatar May 02 '23 11:05 maxcl10

Hey. I also need to dynamically control if the timepicker in a datepicker uses 24h or 12h, and to my knowledge this isn't possible.

I'm able to change it by providing a custom TimepickerConfig where it sets showMeridian to false, but this doesn't seem to be a good solution due to not being able to change it during runtime.

It would be great to have an option in bsConfig for datepicker to use 24h or 12h. Or even better, look at the dateInputFormat or rangeInputFormat (i.e., look for 'HH' or 'hh') and modify the timepicker accordingly.

Xylios13 avatar May 25 '23 07:05 Xylios13