Fetching date in the format DD-MON-YYYY_HH24:MI:SS
Hi,
In Linux, if I need to fetch current date in the format DD-MON-YYYY_HH24:MI:SS, what needs to be the command?
Current Date - 29-MAY-2019
I executed the following command:
date +%d-%^b-%Y
It fetches the date 29-MAY-2019
I also want the timestamp to be connected. For.e.g it is 10:15:22 PM, it needs to be displayed as 29-MAY-2019_22:15:22
Please let me know how do I fetch the same.
Thanks,
Krishna