I need a script file in a batch file that will give me the date of the day in a variable when I ran it. Including conditions such as the 1st march (which will be on February 28 or 29 depending on the year)
Assuming you mean the ms-dos batch file, see this page .
If you use Perl, try here .