W WeekOfYear Syntax WeekOfYear([yy]yymmdd); [yy]yymmdd A date string. 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"
WeekOfYear([yy]yymmdd);
[yy]yymmdd
$a="990512";$b=weekofyear($a);
$b="9919"