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,494 of 68,980    |
|    Zaidy036 to Harry Potter    |
|    Re: Getting current date from WinXP batc    |
|    01 Feb 20 21:41:19    |
      From: Zaidy036@isp.invalid              On 2/1/2020 6:01 PM, Harry Potter wrote:       > 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.       >              Not a big problem but we are not clairvoyant so please tell us what your       date format is set to now. Remember if your batch is then run on another       machine the answer may change.              --       Zaidy036              --- 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