How To Format Date And Time In Linux, MacOS, And Bash?

Manipulating and formatting date and time in a shell script is a fairly common task when automating backup processes or generating scheduled reports. Unfortunately, dealing with date and time is never straightforward. Find out how to manipulate date and time on linux and macOS systems as well as natively in the Bash shell. This post covers all you need to know to format a date from your shell.