how to format a date in shell script code example Example: date format in linux shell script date_now=$(date "+%F-%H-%M-%S")