Bob offered (and I thank him for this):-
>set yyy=%DATE%
>or to get the month value only=
>set yyy=%DATE:~4,2%
but to get the month, you need :-
set yyy=%DATE:~5,2%
so,
set xDATE=%DATE%
set xccyy=%DATE:~0,4%
set xCC=%DATE:~0,2%
set xYY=%DATE:~2,2%
set xMM=%DATE:~5,2%
set xDD=%DATE:~8,2%
Neil
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *