home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,495 of 68,980   
   Harry Potter to All   
   Re: Getting current date from WinXP batc   
   01 Feb 20 15:01:56   
   
   From: rose.joseph12@yahoo.com   
      
   On Saturday, February 1, 2020 at 4:59:13 PM UTC-5, Zaidy036 wrote:   
   > %DATE% is date set in default format for your PC   
   >   
   > Do an echo %DATE% and modify as necessary into a new variable   
   >   
   Thank you, but how do I convert it to the needed format for my purposes in a   
   batch file?  I want the output in YYYY-MM-DD format for listing later backups   
   first in a directory listing.   
      
   --- 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