Date Command in Linux

parthanaboina praveen
3 min readSep 21, 2021

Task Description: Explore date command and with options and try to use every option and create a simple document for it.

#man date : its shows manual of date command

in manual we will get ,how to use date command with options

# date : it display the system date and time

lets see Date command with options

Synopsis :: date [option]… [+format]

# date +%A : it display the week in Fullform form

#date+%a : it display the week in shortform

# date+%b : it displays the month in shortform

#date+%B : it display the month in fullform

#date+%c : it display the current date and time

#date+%d : it display the current Day of month

#date+%D : it display the current Date

#date+%m : it display the current month in numeric

#date+%M : it display the Minutes

#date+%J : it display the Day of Year

#date+%H : it display Hours in 24 houts format

#date+%I : it display Hours in 12 hours format

#date+%W : it display week of year

#date+%w : it display the Day of week

#date+%y : it display last two digits of year

#date+%Y : it display current year

#date+%z : time zone

for more options #man date or # date - - help

#vimaldaga #righteducation #educationredefine #arth2 #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righteducation

--

--