jQWidgets Forums

jQuery UI Widgets Forums Editors DateTimeInput Failed to select Today date

This topic contains 3 replies, has 4 voices, and was last updated by  Nadezhda 10 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Failed to select Today date #64889

    RambabuK
    Participant

    Hi,

    Requirement: Need to select future date including current day as well for my target date input field.

    With this code, Past dates are disabled, that was required for me and expected. I can able to select future dates, which was fine. But the problem is; I am unable to select current date by this.

    $(“#dateinput”).jqxDateTimeInput({
    width : ‘95%’,
    value : new Date(),
    formatString : “MM/dd/yyyy”
    });

    $(“#dateinput”).jqxDateTimeInput(‘setMinDate’,new Date());

    Please help me out. Thanks in advance.

    Failed to select Today date #64892

    Peter Stoev
    Keymaster

    Hi RambabuK,

    Don’t pass new Date() to setMinDate. new Date() returns the Current Date + Current Hour. May be you should make the minimum date to be Yesterday, not Today and so you’ll be able to select Today.

    Best Regards,
    Peter Stoev

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

    Failed to select Today date #67807

    Vinay Reddy
    Participant

    HI,

    I have a requirement where i need to restrict user to select previous dates while filling a form. But in edit case of the same form i need to show selection of previous dates also.

    Below is my fiddle link to check the issue: http://jsfiddle.net/yennamvinay/3UguZ/330/
    In this fiddle i need to select date as 26 but it is selecting today’s date.

    Regards,
    Vinay Reddy

    Failed to select Today date #67813

    Nadezhda
    Participant
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.