4

I have tried following code

echo -n "Date :"
date +'%d/%m/%Y'

But I need it as following format

Date : 13/03/2018 Time : 11.30.30 
0

1 Answer 1

11
$ date +"Date : %d/%m/%Y Time : %H.%M.%S"
Date : 13/03/2018 Time : 23.10.19
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .