gijgo
gijgo copied to clipboard
binding a datepicker to a models date time always shows the time
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