Date Equation Functions

Related Articles:

The following examples use July 8, 2024 as the date:

Function NameDescriptionExample with Result
currentTimeInserts the current time as a date or number valuecurrentTime() = 07/08/2024
currentDateInserts the current date (midnight) as a date or number valuecurrentDate() = 07/08/2024
getDateDayOfWeekReturns the numeric day of the week (Equation field's "Equation Type" must be set to "Numeric")getDateDayOfWeek(07/08/2024) = 2
getDateDayOfMonthReturns the numeric day of the month (Equation field's "Equation Type" must be set to "Numeric")getDateDayOfMonth(07/08/2024) = 8
getDateYearReturns the numeric year of the date (Equation field's "Equation Type" must be set to "Numeric")getDateYear(07/08/2024) = 2024
getDateWeekReturns the numeric week of the year (Equation field's "Equation Type" must be set to "Numeric")getDateWeek(07/08/2024) = 28
getDateMonthReturns the numeric month of the year (Equation field's "Equation Type" must be set to "Numeric")getDateMonth(07/08/2024) = 7
getDateLastDateOfMonthReturns the last date of the month of a given dategetDateLastDateOfMonth(07/08/2024) = 07/31/2024
netWorkDaysReturns the number of working days between two datesnetWorkDays(07/08/2024, 08/06/2024) = 22
maxReturns the maximum of a list of valuesmax(07/08/2024, 08/06/2024) = 08/06/2024
meanReturns the mean of a list of valuesmean(07/08/2024, 08/06/2024) = 07/22/2024
medianReturns the median of a list of valuesmedian(07/08/2024, 08/06/2024) = 07/22/2024
minReturns the minimum of a list of valuesmin(07/08/2024, 08/06/2024) = 07/08/2024
randomIntReturns a random integer between two valuesrandomInt(07/08/2024, 08/06/2024) = 07/20/2024
stdReturns the standard deviation of a list of valuesstd(07/08/2024, 08/06/2024) = 01/21/1970
varReturns the variance of a list of valuesvar(07/08/2024, 08/06/2024) = 06/13/101441

Note: For netWorkDays function, the equation field's "Equation Type" must be set to "Numeric" in order for the calculations to work properly.

Notes:

  • The equation type must be set to "Date" to use some of these functions.

  • The results may vary based on the specific selections you make in the settings of your date equation field. The basic examples provided above aim to offer a foundational understanding of how the function operates.

  • The Date Equation field does not support multiplication within expressions. For example, formulas like (Date) + (A * B), where A and B are numbers or number fields will not work as expected. You'll need to calculate the result of A * B separately and reference that value in your date equation.