jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput Cannot set date

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Cannot set date #54324

    mail2taurus
    Participant

    Dear Sir,

    With this following codes:

    $(“#INITIAL_DATE”).jqxDateTimeInput({ width: ‘150px’, height: ’25px’, enableBrowserBoundsDetection: true, formatString: ‘d/M/yyyy’ });
    $(“#EXPIRE_DATE”).jqxDateTimeInput({ width: ‘150px’, height: ’25px’, enableBrowserBoundsDetection: true, formatString: ‘d/M/yyyy’ });

    $(“#INITIAL_DATE”).jqxDateTimeInput(‘setDate’, ’23-May-14 12:00:00 AM’);
    $(“#EXPIRE_DATE”).jqxDateTimeInput(‘setDate’, ’31-May-14 12:00:00 AM’);

    It can display the correct date in Chrome, but it display today in IE.

    Please help,

    Best regards,

    Cannot set date #54326

    Peter Stoev
    Keymaster

    Hi mai2taurus,

    To set a date, you need to pass JavaScript Date object when you call “setDate”. Example: http://jsfiddle.net/jqwidgets/3UguZ/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.