NoNicknameSFDC
NoNicknameSFDC

Reputation: 221

Default time in kendo datetime picker

As we know that we set the default start day of the week for calendar in kendo date time picker, is there any way we can set the default time in kendo date time picker?

If we use

value: new Date()

this will set the field with current date and time, but what I want is that, only the time picker in datetime picker should be defaulted to 9:00 AM which is by default 12:00 AM.

Upvotes: 3

Views: 11508

Answers (2)

Janus Troelsen
Janus Troelsen

Reputation: 21298

Take a look at this example.

Seems to me like they are specifying a default date using the constructor:

            $("#datetimepicker").kendoDateTimePicker({
                value:new Date()
            });

Upvotes: 2

PraJen
PraJen

Reputation: 606

Use this article : http://docs.kendoui.com/api/web/datetimepicker

         var dateTimePicker = $("#dateTimePicker").data("kendoDateTimePicker");
          // set the selected value on the dateTimePicker to January 1st, 2011
          dateTimePicker.value(new Date(2011, 0, 1));

    var dateTimePicker = $("#dateTimePicker").data("kendoDateTimePicker");
    dateTimePicker.value("2/23/2000 10:00 AM");

Upvotes: 0

Related Questions