Pal's Web Log
Programming - Linux, Ubuntu, Python, Django, Postgres, HTML, Cloud, Data Science etc.
Labels
Django
Docker
Google Cloud
Linux
Postgres
Python
Tuesday, June 16, 2015
Date Command with Format
Date command in Linux shows the results as below:
#date
#Tue Jun 16 16:18:50 EDT 2015
But if you want to display the date say in the format 16-06-15 then use the following format option with date command:
#date +"%d-%m-%y"
#16-06-15
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment