gijgo icon indicating copy to clipboard operation
gijgo copied to clipboard

binding a datepicker to a models date time always shows the time

Open paulc1983 opened this issue 5 years ago • 0 comments

Hi

I am trying to use the date-icier bound to a c# date time from a server side model (using blazer server side). I have set the date format to exclude the time but whenever the model updates the value it always displays the time. Is there a way to force the control to only show the date?

I create the control like this: datepicker({ uiLibrary: 'bootstrap4', format: 'dd/mm/yyyy',

I have used the on change event to manually fire a Dom level on change event and bond the control value to my model to ensure it updates. I know this isn't exactly how these were designed to be used, but it works great except for the time format

Thanks

Paul

paulc1983 avatar Apr 02 '20 11:04 paulc1983