Guides 11791 Published by

A Bash tutorial by Tecadmin explains how to display date and time in a particular way.



Bash: Display Date and Time In a Specific Format

To display the current date and time in a specific format in Bash, you can use the date command. The date command allows you to specify a format string that determines the format in which the date and time are displayed. For example, to display the current date and time in the format “YYYY-MM-DD HH:MM:SS”
Gnome_shell_screenshot_l1gsx1

Bash: Display Date and Time In a Specific Format – TecAdmin