Script functions reference > Script functions in alphabetical order > N > NewDate

NewDate
Syntax
NewDate([yy]yymmdd, num_days);
[yy]yymmdd 
num_days 
Description
Calculates a date from a given date and a negative or positive number of days.
Returns
A string specifying a date in yyyymmdd format.
Example
$a="980427";
$b=newdate($a,15);
$c=newdate($a,-10);
Result:
$b="19980512"
$c="19980417"
OpenText StreamServe 5.6 Updated: 2013-03-01