The rollDate function is used to roll a particular value that is based on a date. For example, perhaps you want to send a feedback email one day after a service desk request was closed. In that case, to write the automation logic, use this function.
When this function is executed, the value num is added to the date dt based on the type.
Syntax
dtRollDate = rollDate(dt, num, type)
Arguments
Specifies the date object that is based on the rolling to take place.
Specifies the value that must be rolled.
Specifies the one of the following values:
Return Value
dtRollDate (java.util.Date)
Examples
dtRollDate = rollDate(today(),2,'d')
dtRollDate = rollDate(today(),1 'y')
dtRollDate = rollDate(today(), -1,'w')
dtRollDate = rollDate(today(),-1 ,'m')
|
Copyright © 2014 CA.
All rights reserved.
|
|