The adjustDate function adjusts a date by a specified number of days, weeks, months or years.
Syntax
newDt = adjustDate(dt, number, type)
Arguments
Specifies the date that needs to be adjusted.
Specifies the value that needs to be adjusted.
Specifies the type of the value to be adjusted. Can be one of the following types:
Return Value
The adjusted date is returned as a java.util.Date.
Examples
Assume that today is 2/16/2012
adjustDate(today(),2,'d')
adjustDate(today(),1'y')
adjustDate(today(),-1,'w')
adjustDate(today(),-1,'m')
|
Copyright © 2014 CA.
All rights reserved.
|
|