Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kendo Datepicker format not changing

I've got a Kendo Datepicker which displays as dd/MM/yyyy, which is fair enough. However, I'm wanting to change it to MM/dd/yyyy but whenever I do (by changing format in the below), it either remains at dd/MM/yyyy or becomes blank:

<input name="saleDate" id="txt-saleDate" data-bind="kendoDatePicker: { value: saleDate, format: 'MM/dd/yyyy', enabled: $parent.isNewSales }" />

Tried changing the format to 'MM/dd/yyyy' (as above) and also 'yyyy/MM/dd' but none of these have worked. Also tried using parseFormats.

like image 331
user25730 Avatar asked Nov 17 '25 20:11

user25730


1 Answers

I had the same issue and format: "{0:yyyy-MM-dd}" code satisfied me. I hope this helps you.

like image 84
eugene.sushilnikov Avatar answered Nov 19 '25 09:11

eugene.sushilnikov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!