Add or subtract days, seconds, hours and more from date columns
You can use the Date Math tool to extract parts of date columns - such as a weekday or year. It is particularly helpful in combinations with others tools.
The columns you use in the Date Math tool must be formatted as a date/datetime. Use the Change Columns tool to change column formats.
The Date Math tool consists of two required input.
1
Input Column Name
The Date Math tool will create a new column. Use this input to name it.
2
Select Date Column
Select the column that you want to add/subtract a duration to/from
3
Select Unit
Select the unit you want to add/subtract to/from your date column. You can select one of the following:
Seconds
Minutes
Hours
Days
Weekdays
Months
Years
4
Input Number of Units
Input the number of units that you want to add/subtract from your date column. Simply put a - (minus) in front of the number of units to subtract instead of add.You can reference column values in this input. Check out the examples below. However, you cannot reference columns when adding or subtracting months or years.