Format And Print The Current Date And Time
Last updated
Was this helpful?
Last updated
Was this helpful?
If I run the date
command from the terminal, I get output like the following:
If I want to format the date output different, perhaps for inclusion in a shell script, I can do something like this:
Then I can incorporate that in a script like this:
This includes some examples and a page of formatting options.