Knockout kendo ui date time picker

249 Views Asked by At

I am using Knockout kendo ui date time picker in one application and am reusing same application for other project here i want to change the date time format which should effect all the screens at once with out changing the existing code in asp.net mvc5

Thank You In Advance

1

There are 1 best solutions below

0
RP Niemeyer On

If you are using the knockout-kendo bindings, then you can set options globally for any of the bindings like:

ko.bindingHandlers.kendoDatePicker.options = {
    format: "yyyy/MM/dd"
};

Alternatively, you could set the culture for all widgets using kendo.culture as described here: http://docs.telerik.com/kendo-ui/framework/globalization/overview