3

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 
10
$ date +"Date : %d/%m/%Y Time : %H.%M.%S"
Date : 13/03/2018 Time : 23.10.19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.