Help

Save the date! Join us on October 16 for our Product Ops launch event. Register here.

Calculating start date when end date is given in script template

Topic Labels: Extensions
1845 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Candace_Strickl
5 - Automation Enthusiast
5 - Automation Enthusiast

Continuing the discussion from Autofill Task Dates Based on Project Due Date:

Can anyone explain how to do this calculation within the script block for record templates?
All of the scripts have the user putting in a start date with the task objects being created and calculating the end dates (probably explaining wrong).
I am using the PM Script Block 1.2 as my basis for making my template, but I want to do the opposite date calculations with:
End Date: user input
Days Out: field filled in already
Start Date: calculated

I am new to script so any ideas, direction, or specific help would be appreciated.

1 Reply 1

You can use the same method to calculate the start date as those scripts. However, instead of adding the number of days, subtract the number of days.