I’d done this before, but couldn’t remember how to do it. I found this useful article on support.microsoft.com
If you want to grab just the date digits section of today’s date, do the following (echoed in this example)
echo %date:~-10,10%
This will result in the following output:
11/10/2010