Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 12 days ago
JSON representation

Simple date for windows or any OS

Awesome Lists containing this project

README

        

[![Release](https://img.shields.io/github/v/release/dsaouda/sdate.svg?style=for-the-badge)](https://github.com/dsaouda/sdate/releases/latest)
[![Go Report](https://img.shields.io/badge/go%20report-A+-brightgreen.svg?style=for-the-badge)](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