jQuery UI Widgets Forums Editors DateTimeInput Limit date range to 2 days

This topic contains 3 replies, has 2 voices, and was last updated by  ivailo 8 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Limit date range to 2 days #84993

    Marina
    Participant

    Hi,
    How can I limit ability for user to select only n days(2 days in my case) when I’m using jgxDateTimeInput with selectionMode: ‘range’.
    Marina

    Limit date range to 2 days #85002

    ivailo
    Participant

    Hi Marina,

    You can use mi and max properties ti set your range.
    Here is a demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Limit date range to 2 days #85012

    Marina
    Participant

    Hi,
    I understand how to set min and max, but what I meant is ability for user select only two days range. Like if he picked 5/9/16 as start of range the end of range can only be 5/10/16 and if he picked 6/7/16 as start of range, then the end of range should only be allowed to pick 6/8/16 or no end date meaning that range is one day only. Like I want to set min/max dynamically on click of start date of range. Is it possible?

    Limit date range to 2 days #85025

    ivailo
    Participant

    Hi Marina,

    Unfortunately there is no such a built in functionality.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.