How can I limit the date picker?

  • WTAAWitz
    Asked on March 23, 2018 at 7:04 AM

    Hello,

    how can I limit the date picker, so that only the last day of each month can be chosen?

  • Victoria_K
    Replied on March 23, 2018 at 10:12 AM

    Hello,

    Unfortunately, there is no possible workaround to allow only the last day of each month automatically at Date Picker, except of Disabling Date Ranges manually. 

    You can disable custom ranges at the LIMITS tab of the Date Picker properties:

    1521813906screenshoti4f2m Screenshot 10

    1521813927screenshotfljg6 Screenshot 21

    Which results:

    1521814266screencast2 Screenshot 32

    Hope this helps! But if you need further assistance, just let us know.

  • WTAAWitz
    Replied on March 25, 2018 at 3:28 PM

    Thanks for your help. I tried it without the year, but it doensn't work:

    01-01>01-30

    02-01>02-27

    03-01>03-30

    04-01>04-29

    05-01>05-30

    06-01>06-29

    07-01>07-30

    08-01>08-30

    09-01>09-29

    10-01>10-30

    11-01>11-29

    12-01>12-30


    Where is my mistake?

  • Victoria_K
    Replied on March 25, 2018 at 4:20 PM

    The format you used produces a confusion. For example, you asked to disable a range from 01-01 of undefined year(e.g 2018) to 01-30 of undefined year(2019 or 2018?).

    That's why you need to use the full format of dates:

    2018-01-01>2018-01-30

    2018-02-01>2018-02-27

    2018-03-01>2018-03-30

    2018-04-01>2018-04-29

    2018-05-01>2018-05-30

    2018-06-01>2018-06-29

    2018-07-01>2018-07-30

    2018-08-01>2018-08-30

    2018-09-01>2018-09-29

    2018-10-01>2018-10-30

    2018-11-01>2018-11-29

    2018-12-01>2018-12-30

    But, it works when disabling custom dates:

    How-to-Use-the-Date-Limits-Option

    Hope this helps!

  • WTAAWitz
    Replied on March 25, 2018 at 5:02 PM

    Thank you very much! Unfortunatelly this means more work :( But main thing it works! ;)