MatBlazor icon indicating copy to clipboard operation
MatBlazor copied to clipboard

MatDatePicker defualt time when selecting from calendar and EnableTime="true"

Open GianpietroColosio1971 opened this issue 5 years ago • 1 comments

When you start from empty datetime (the binded value of datetime is null) and you select a date from calendar with the EnabledTime true, the actual time shown by the component is set to 12:00 AM by default. It would be great to have the possibility to set a different default time like to easily handle for example the start of the day (00:00:00) and end of the day (23:59:59). So when you use two Mat Datepicker having set the default to begin of the day in the first and end of the day in the second you could immediately get the desired time period range.

GianpietroColosio1971 avatar Jan 25 '21 12:01 GianpietroColosio1971

@GianpietroColosio1971 , Thanks for reporting! We are always looking for contributors if you want to open a PR and tackle this. 🙂

Christian-Oleson avatar Mar 08 '21 00:03 Christian-Oleson