angular-material-components icon indicating copy to clipboard operation
angular-material-components copied to clipboard

Change default (now-time) / startAt Date and Time selected in picker

Open klimtron opened this issue 4 years ago • 3 comments

Hi there, I need to change the default selected daytime displayed on picker when i open it as well as time on the bottom part to specified date and time, is that possible right now? image

Regards EDITED - setting time is done, but I need to set the default/now date without placing value to input

klimtron avatar Feb 25 '21 12:02 klimtron

Hi, so finally I menaged to set the default time, my problems where caused by wrong dependencies. But still I need to figure it out how to set highlighted default/now Date on opening picker without placing value to the input. I would be very grateful if someone helps, @h2qutc would you look at this one, please. Regards, Piotr

klimtron avatar Apr 07 '21 00:04 klimtron

I'm trying to use and startAt property from default mat-datepicker, but it gives no result ngxMatDateTimePicker :/ image

https://material.angular.io/components/datepicker/api#MatDatepicker demo: https://stackblitz.com/edit/angular-ukqeff?file=src/app/datepicker-overview-example.ts

klimtron avatar Apr 09 '21 11:04 klimtron

try this

https://github.com/h2qutc/angular-material-components/issues/185#issuecomment-856048678

kofizzz avatar Jun 07 '21 15:06 kofizzz