Simple date for windows cmd
See https://github.com/dsaouda/sdate/releases/latest
sdate -f "yyyy-MM-dd HH:mm:ss"
https://github.com/vjeantet/jodaTime#format
Difficulty formatting dates in windows bash script.
For more detail see:
- https://stackoverflow.com/questions/1192476/format-date-and-time-in-a-windows-batch-script
- https://www.windows-commandline.com/get-date-time-batch-file/
- https://stackoverflow.com/questions/14810544/get-date-in-yyyymmdd-format-in-windows-batch-file
If you are using powershell see https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-date?view=powershell-6