assign date '+ y m d' to a variable in shell script code example Example: bash date date #displays date and time in terminal