Hi there,
I created a data bound date picker using the data-role attribute as follows:
<input id="startDatepicker" name="startDatepicker" class="datePicker" data-role="datepicker" data-bind="value: settings.startDate" data-format="yyyy-MM-dd" />
when I try to change the data-format to 'dd-MM-yyyy' the value wont show up, I think its because the default culture is en-US and therefore the date value becomes invalid. is there a way to specify the culture of the control to say en-NZ so that I can specify the format to dd/MM/yyyy correctly?
There are quite a few examples with setting date format as follows:
$("#datepicker").kendoDatePicker({
culture: "de-DE"
});
but does say how to do data binding if I am doing it this way
Any suggestions around either approach is greatly appreciated.
Thanks
Paul
I created a data bound date picker using the data-role attribute as follows:
<input id="startDatepicker" name="startDatepicker" class="datePicker" data-role="datepicker" data-bind="value: settings.startDate" data-format="yyyy-MM-dd" />
when I try to change the data-format to 'dd-MM-yyyy' the value wont show up, I think its because the default culture is en-US and therefore the date value becomes invalid. is there a way to specify the culture of the control to say en-NZ so that I can specify the format to dd/MM/yyyy correctly?
There are quite a few examples with setting date format as follows:
$("#datepicker").kendoDatePicker({
culture: "de-DE"
});
but does say how to do data binding if I am doing it this way
Any suggestions around either approach is greatly appreciated.
Thanks
Paul