TecMint published a tutorial about how to work with date and time in Bash using the date command.
How to Work with Date and Time in Bash Using date Command
Date command is an external bash program that allows to set or display system date and time. It also provides several formatting options. Date command is installed in all Linux distros by default.
How to Work with Date and Time in Bash Using date Command