Loading ...
Sorry, an error occurred while loading the content.

Re: [BATCH WORLD] Date Operation + Yesterday's date

Expand Messages
  • Aleksey D. Tetyorko
    Hi! ... As I see there is no internal support to date arithmetics. But I found some batch implementations of functions needed. E.g. see
    Message 1 of 3 , Sep 15, 2010
    • 0 Attachment
      Hi!
      >I understand that

      >for /f "tokens=2,3,4 delims=/ " %%a in ('date /t') do set
      >WRKDATE=%%c%%a%%b

      >will set WRKDATE to current date in yymmdd format. What changes will I
      >have to make if I had to see yesterday's date?

      As I see there is no internal support to date arithmetics. But I found some
      batch implementations of functions needed.
      E.g. see
      http://www.computing.net/answers/programming/date-routines-in-batch-files/15590.html

      Aleksey
    Your message has been successfully submitted and would be delivered to recipients shortly.