date
- Usually combined with scripts
# Show current date
date
Input date
date -d '2023-12-31T12:00:00.000Z'
date -u -d '2023-12-31T12:00:00.000Z' # Output as UTC
Format date
# json with minutes and hours
date +'{"hour":"%H","min":"%M"}'
# unix epoch
date +'%s'
Set system date
date -s "12 Mar 2018 13:20:00"