Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,980 of 42,547    |
|    Kerr-Mudd, John to Chris Roberts    |
|    Re: DOS Batch program countdown days unt    |
|    02 Feb 22 16:53:49    |
   
   From: admin@127.0.0.1   
      
   On Wed, 2 Feb 2022 07:02:02 -0800 (PST)   
   Chris Roberts wrote:   
      
   > DOS Batch program to countdown days/year (countdown date)   
   >   
   > Hi,   
   > Maybe someone can assist?   
   > I am having trouble figuring out how to do this using a DOS/BATCH program.   
   >   
   > For instance.   
   > $ echo %date%%time%   
   > Wed 02/02/2022 9:54:30.16   
   >   
   > Would someone here know how I can subtract todays date from 11/8/22 to   
   easily see how many days I still have to go?   
      
      
   >   
   Timo Salmi has probably "curated" an answer;   
      
   FWSE phrase "batch date arithmetic"   
      
      
      
   or are you a troll? 11/8/22 is ambiguous (US v UK date format)   
   --   
   Bah, and indeed Humbug.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca