0

I have some records in my database as below: enter image description here

Note that the StartDateTime and EndDateTime are in 24 hours-system. But when I display the datetime in my view, the time format is 12 hours-system as below: enter image description here

From the html code, the value for "1st" End Date Time is correct, but in 12 hours-system: enter image description here

The dates are used to calculate the amounts. This resulted in wrong number of hours calculated based on the kendoui datetimepicker. Can i know how to solve this?

Here is the JS:

$("#Payment_End_Date_" + count).kendoDateTimePicker({
                format: "dd/MM/yyyy HH:mm",
                timeFormat: "HH:mm",
                interval: 60
            });
erntay2
  • 140
  • 3
  • 16

1 Answers1

0

Change format to

format: "dd/MM/yyyy H:mm",
фымышонок
  • 1,362
  • 16
  • 22