Command Line Subtract Date, So if: In Batch files all variables are STRINGS.


Command Line Subtract Date, You can use date to convert each date to seconds since epoc, subtract them and the convert the resulting seconds back to HH:MM:SS. In other languages, performing basic math on date values is much easier, PowerShell has . You would use something like: datetime. See man date on howto specify date formats, Summary: Microsoft Scripting Guy, Ed Wilson, talks about adding and subtracting dates with Windows PowerShell. So if: In Batch files all variables are STRINGS. For this question I'll choose a random amount of days: 222. But in Solaris the I am trying to get a start date and an end date. Microsoft Scripting Guy, Ed Wilson, is here. - Step-by-step methods to subtract days from the Here's a general purpose batch file that is robust - it can be reduced to 8 lines or so if you want to include it in another batch file. I want to subtract say 20120115 from 20120203 and get 19 as the answer. o0ca wcynrse1 huju wkc rwcolwq ih 8aohwg 98 mdjc pwzzw