datetime in bash code example
Example 1: datetime echo shell script
$(date '+%d/%m/%Y %H:%M:%S')
Example 2: bash get current date
# syntax
$(date)
# example (when running the command of "date")
echo $(date)
# OUTPUT: Mon May 11 13:20:57 SAST 2020
# To return a specific FORMAT, search "bash get date format"
Example 3: bash date
date #displays date and time in terminal