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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.