Date Picker: How to select yesterday's date.

  • IPF ZSCR NCR
    Asked on December 5, 2024 at 2:19 AM

    You can achieve dynamic date selections using the Start & End Date limit with

    today+{n}

    where {n} is the number of days to be added to today.

    Suppose you’re working on a booking form and would like to limit the booking dates to at least one week after submission and also limit the booking window to just one week. For this to happen, you need to set the Start Date to “today+7” (a week after) and the End Date to “today+13” (a window of just one week).

    but,I want to select yeserday's date i.e. Today-1

  • Mark Alan JotForm Support
    Replied on December 5, 2024 at 6:07 AM

    Hi IPF ZSCR NCR,

    Thanks for reaching out to Jotform Support. I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

  • Mark Alan JotForm Support
    Replied on December 5, 2024 at 11:32 AM

    Hi IPF ZSCR NCR,

    You'd have to enable the past and future dates feature on the Date Picker for you to select the previous dates. Let me show you how:

    1. In your Date Picker field, click the gear icon to open its settings.
    2. Go to Limits tab, then tick the checkbox of Past & Future to enable it.
      Date Picker: How to select yesterdays date Screenshot 30

    See the screencast below for my results:

    Date Picker: How to select yesterdays date Screenshot 41

    Reach out again if you have any other questions.