I've setup a kendo datepicker with kendo mvvm binding as detailed below, and if I enable the "min" value during the datepicker initialisation, the bound date becomes of the format: "Sat Mar 31 2012 00:00:00 GMT+1000 (E. Australia Standard Time)", whereas if I remove the setting of the "Min" value, the format becomes "2012/03/31" which is what I expect it to do with the "min" value set.
Is this a bug in kendo? Tested in latest chrome browser with kendo release 2012.1.322.
view code:
<div id="container">
<input id="dateFrom" class="datePicker" data-role="datepicker" data-bind="value: startDate"/>
</div>
javascript:
$(document).ready(function() {
var viewModel = kendo.observable({
startDate: new Date("2012/03/31") });
kendo.bind($("#container"), viewModel);
$(".datePicker").width(182).kendoDatePicker(
{
format: "yyyy/MM/dd",
min: new Date() // this line right here causing the format to change of the databound value
});
});
Is this a bug in kendo? Tested in latest chrome browser with kendo release 2012.1.322.
view code:
<div id="container">
<input id="dateFrom" class="datePicker" data-role="datepicker" data-bind="value: startDate"/>
</div>
javascript:
$(document).ready(function() {
var viewModel = kendo.observable({
startDate: new Date("2012/03/31") });
kendo.bind($("#container"), viewModel);
$(".datePicker").width(182).kendoDatePicker(
{
format: "yyyy/MM/dd",
min: new Date() // this line right here causing the format to change of the databound value
});
});