Answers for "bash print current date format"

3

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"
Posted by: Guest on May-11-2020
1

date format in linux shell script

date_now=$(date "+%F-%H-%M-%S")
Posted by: Guest on May-08-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language