Re: get date - 1 day
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Wed, 19 Dec 2007 23:50:25 +0100
"Hassan" <hassan@xxxxxxxx> wrote in message
news:emUaGwoQIHA.280@xxxxxxxxxxxxxxxxxxxxxxx
How can i get the value of the date i.e. one day minus todays date
I tried echo %date-1%
and even echo %date% -1
Doing date arithmetic in a batch file is cumbersome
because you have to write your own routines to
calculate the number of days since an artifical start
date, e.g. 1 January 1970. Use VB Scripting -
it has a full set of functions designed specifically
for this purpose.
.
- Follow-Ups:
- Re: get date - 1 day
- From: Dr J R Stockton
- Re: get date - 1 day
- From: Richard Mueller [MVP]
- Re: get date - 1 day
- References:
- get date - 1 day
- From: Hassan
- get date - 1 day
- Prev by Date: Re: vbs to run thru list of files
- Next by Date: Re: Need help finishing a WMI script
- Previous by thread: get date - 1 day
- Next by thread: Re: get date - 1 day
- Index(es):
Relevant Pages
|