Yesterday
Posted: 23 Oct 2021 23:13
I use this for "Today" timestamp:
Can I get "Yesterday" from this OR do I have to run the code mentioned in viewtopic.php?f=3&t=9254&p=60208&hilit= ... amp#p60208
Thanks
Code: Select all
for /f %%i in ('WMIC OS Get LocalDateTime /value') do for /f %%j in ("%%i") do set "%%j"
set today=%LocalDateTime:~0,8%
Thanks