• Resolved MikeKJ

    (@mikekj)


    Is it possible to prevent picking a date that is less than server date?
    It is possible to prevent selecting a previous year but supposing it is February 16 2017, it is currently possible to select a date in January 2017.

    Note: I am using the PRO version and have your jQuery hooked variances in functions.php

    Many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    I have updated the plugin and release 1.2.9 with minDate and maxDate options. In your case, you need to manage with -1 for yesterday and +1 for tomorrow. Same like this you can increase the numbers to restrict the range.

    So you can use “0” zero for only present date selection with minDate and leave empty the maxDate for no limit further. Or you can use number days with “+”.

    Alternatively you can restrict the years range with “2017:2020”. Let me know if it works for you.

    Thread Starter MikeKJ

    (@mikekj)

    I ran the update and problem 1 is it immediately reverted to non PRO version

    use of minDate and maxDate, like this?

    $(‘#available_from, #available_to, input[name=”confirmstartdate”]’).datepicker({dayNamesMin: [‘S’, ‘M’, ‘T’, ‘W’, ‘T’, ‘F’, ‘S’], dateFormat: “yy-mm-dd”, changeMonth: true, changeYear: true, minDate:”0″, maxDate:””, closeText: “”, currentText: “”, yearRange: “-0:+50”});

    above had no effect do I need to drop yearRange?

    Thread Starter MikeKJ

    (@mikekj)

    resolved the PRO problem by re-downloading latest PRO version and re-installing

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    yearRange should be like 2017:2020 etc. and you may drop it if you don’t to restrict future years.

    Thread Starter MikeKJ

    (@mikekj)

    answer came almost instantaneously, drop yearRange and minDate/maxDate works perfectly.
    This addition to the plugin makes it way more versatile and the owner/developer of it is passionate about supporting it.

    Many many thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘past dates additional’ is closed to new replies.