I have used this many time in Windows batch files.
You can set any variable, in my example below called "thedate" to a substring of the computers date to produce only the numbers without any "/" in case this needs to be used in creating folder or file names.
For my example I would like to use a script to create a photos folder with the date in the name:
then you can show your output
I then use
to create a folder called "photos_20150727"
The above was created using Window 7.
Hope this help
Labels: command line, Microsoft Windows, scripts