Greg McDonald,
Are you the same person as the original poster? If not please do not piggyback on someone else's thread. Start your own post.
Actually the code works according to the specs presented and with no embedded spaces in the date.
You might have missed the part where I mentioned that batch language is not always backward compatable.
If you need a two digit year, you need to use a SET statement to extract them.
If you don't need a leading zero for the months, use a conditional SET statement for Jan thru September.