Script functions reference > Script functions in alphabetical order > W

W
WeekOfYear
Syntax
WeekOfYear([yy]yymmdd);
[yy]yymmdd 
Description
Returns the year and the number of a week within the year.
Returns
A string (str) specifying the year and number of the week within the year in yyww format.
Example
$a="990512";
$b=weekofyear($a);
Result:
$b="9919"
OpenText StreamServe 5.6 Updated: 2013-03-01