Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
525
Is there a TimePicker control available just like the DatePicker?
posted

Hello,

I need to use TimePicker on my website shown in the attachment. I was wondering if Ignite UI provides such a control?

Regards,

Arfan Baig

Parents
No Data
Reply
  • 23953
    Verified Answer
    Offline posted

    Hello Afran,

    There is no standalone TimePicker control. Instead igDatePicker can show only time values.

    Here is the code with which you can achieve TimePicker functionality:

    $("#dateEditor").igDateEditor({
    dateInputFormat: "time",
    dateDisplayFormat: "time",
    nullText: "Enter Time",
    button: "spin",
    value: new Date("2013-04-01T15:40:40Z")
    });

    To get the value of the igDatePicker use the following API: $(".selector").igDatePicker("value");

    Note: You'll have to work with JavaScript Date object when setting/getting values from the igDateEditor.

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc. 

Children