echo date in bash 1

echo date in bash

$(date '+%d/%m/%Y %H:%M:%S')

Here is what the above code is Doing:
1. It’s creating a variable called “now” and assigning it the value of the current date and time.
2. It’s printing the value of the “now” variable.

Similar Posts