From: thecjguy1@gmail.com   
      
   On Wednesday, February 2, 2022 at 2:13:25 PM UTC-5, Chris Roberts wrote:   
   > On Wednesday, February 2, 2022 at 11:53:51 AM UTC-5, Kerr-Mudd, John wrote:   
   > > 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.   
   > Nope, Not a troll. I used the world renown election day 11/8/22 just for my   
   example.   
   > UK has the date format all backwards and Who's Timo Salmi? Who "Curates"   
   answers anyway? :-)   
      
      
   That's a cool script, I may use it.   
   But it says it "extract from the %date% variable" and then does NOT use    
   %date% at all and instead statically defines the date.   
   I don't totally get :day2date It seems like a lot of variables for this simple   
   task.   
      
   Thanks,   
   crzzy1   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|