I need a script in batch file which will get me yesterdays date into a variable when i run it. Including the conditions like march 1st(which will be Feb 28th or 29th dependin开发者_Go百科g on the yr)
Assuming you mean a ms-dos batch file, see this page.
If you are using Perl, try here.
精彩评论