What Day of the Week Was It?

This page answers questions like these:

What Day of the Week is Christmas Day this year?

date -d "25 dec" "+%A"
date -d "dec 25" "+%A"

What Day of the Week was New Year’s Day This Year?

date -d "1 jan" "+%A"
date -d "jan 1" "+%A"
date -d "1/1" "+%A"

What Day of the Week will New Year’s Day be Next Year?

date -d "1 jan next year" "+%A"
date -d "jan 1 next year" "+%A"
date -d "1/1 next year" "+%A"

What Day will it be on a Certain Date?

date -d "DD MMM YYYY" "+%A"
date -d "MMM DD YYYY" "+%A"



Related Links:
Tomorrow's Date using Shell Script Commands
Yesterday's Date using Shell Script Commands
Is this Year a Leap Year using Shell Script Commands?

Home  >  Linux / Unix  >  What Day of the Week Was It?


Tags: day of the week, date, shell script, shell command, linux, unix

Src: date-what-day.txt
Dst: Linux-Unix/what-day-of-the-week-was-it-using-shell-script-commands.htm
Ads: 5