How to add 5 days to the current date?

  • pnmdlc
    Asked on August 18, 2019 at 2:44 AM

    Is it possible to use the current date in a calculation.  I want to set a date to default to today + 5 days.

    Thanks Paul...

  • jherwin
    Replied on August 18, 2019 at 3:19 AM

    Yes, simply add "form calculation widget" to your form and then use (datestring) math function. Please check my screencast below for reference and guide:
    1566112717datestring Screenshot 10
    Please give it a try and let us know if that could work for you.

  • pnmdlc
    Replied on August 18, 2019 at 6:00 PM

    Thanks jherwin

    I can now see how to do this for a calculated field but unfortunately I needed to use it with the date picker.  That is to restrict the selected date to be from today plus 5 days.

    I worked out I can enter today + 5 in the start date so job done.

    Paul...

  • jonathan
    Replied on August 18, 2019 at 7:35 PM

    Paul, 

    Please check the user guide : How to Use the Date Limits Option

    The disable custom dates ranges is what you were looking for.

    Example:

    How to add 5 days to the current date? Image 1 Screenshot 20


    I hope this help. Let us know if you need further assistance.