date
Thedate
command
Usage
date
: gives the current date and timedate +(time format)
: gives current date and time in the format given (using standard date syntax)
Modifying dates
The -v
option modifies the returned date. The command date -v <modifer> <format>
will modify the date and return it in the provided format. Dates can be shifted forward or backward by a given amount using +
or -
followed by a number and a unit.