How to Get Current Date and Time in Bash

Itacen Sabacok | Jul 22, 2022
1# get more details by running "date --help" command
2date '+%d-%m-%Y %X'

OUTPUT:

22-07-2022 11:35:53