https://github.com/dsaouda/sdate
Simple date for windows or any OS
https://github.com/dsaouda/sdate
cmd datetime golang jodatime linux powershell windows
Last synced: 5 months ago
JSON representation
Simple date for windows or any OS
- Host: GitHub
- URL: https://github.com/dsaouda/sdate
- Owner: dsaouda
- License: apache-2.0
- Created: 2018-12-16T20:32:27.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2021-07-06T11:50:56.000Z (over 4 years ago)
- Last Synced: 2025-07-17T12:16:50.474Z (6 months ago)
- Topics: cmd, datetime, golang, jodatime, linux, powershell, windows
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/dsaouda/sdate/releases/latest)
[](https://goreportcard.com/report/github.com/dsaouda/sdate)
# sdate
Simple date for windows cmd
## Install
See https://github.com/dsaouda/sdate/releases/latest
## Usage
`sdate -f "yyyy-MM-dd HH:mm:ss"`
## Format help
https://github.com/vjeantet/jodaTime#format
## Motivation
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