Custom form displaying date incorrectly
Tried this:
$('body').on("click",".k-i-clock",function(){$(this).closest(".k-picker-wrap").find("input[data-control='dateTimePicker']").data('kendoDateTimePicker').setOptions({"format":"mm/dd/yyyy"});});
});
No effect. Any thoughts?
Shouldn't matter, but it is in a CR form.
Thanks
Rod
Best Answers
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭Change C:\inetpub\CiresonPortal\Scripts\app\app.controls.js as follows:Starting on line 417 change from:settings.hasTimePicker? $('[id="' + settings.name + '"]').val(val.toISOString()): $('[id="' + settings.name + '"]').val(val.toISOString());} else {settings.hasTimePicker? $('[name="' + settings.name + '"]').val(val.toISOString()): $('[name="' + settings.name + '"]').val(val.toISOString());}Change it to:settings.hasTimePicker? $('[id="' + settings.name + '"]').val(kendo.toString(val, 'g')): $('[id="' + settings.name + '"]').val(kendo.toString(val, 'd'));} else {settings.hasTimePicker? $('[name="' + settings.name + '"]').val(kendo.toString(val, 'g')): $('[name="' + settings.name + '"]').val(kendo.toString(val, 'd'));}5
-
Rod_Marten Customer IT Monkey ✭Darn that's embarrassing. Left my previous attempt to set date format in the custom.js file. it was causing the issue.
0
Answers
Can't upgrade due to view bugs in current version
Is this in future releases or do I need to manage it as a mod?
Thoughts?