Problem

Writing a batch file that needs to use date/time.

Solution

Here is a useful cheat sheet: