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.
Input Column Name
The Date Math tool will create a new column. Use this input to name it.
Select Date Column
Select the column that you want to add/subtract a duration to/from
Select Unit
Select the unit you want to add/subtract to/from your date column. You can select one of the following:
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.
The Date Math is helpful whenever you need to create a reference date:
Adding Months
I want to add a fixed number of months to my date column
Referencing Columns
I want to subtract a dynamic number of days from my date column
Note the minus in front of the number column reference
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.
Input Column Name
The Date Math tool will create a new column. Use this input to name it.
Select Date Column
Select the column that you want to add/subtract a duration to/from
Select Unit
Select the unit you want to add/subtract to/from your date column. You can select one of the following:
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.
The Date Math is helpful whenever you need to create a reference date:
Adding Months
I want to add a fixed number of months to my date column
Referencing Columns
I want to subtract a dynamic number of days from my date column
Note the minus in front of the number column reference