What Day of the Week Was It?

This page answers questions like these:


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)



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 of the Week was it or will it be on ... ?

date -d "DD MMM YYYY" "+%A" date -d "MMM DD YYYY" "+%A" date -d "YYYY/MM/DD" "+%A" date -d "YYYY-MM-DD" "+%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 week, day of week shell script, date, shell script, shell command, linux, unix, solaris, bsd, aix

Copyright © HelpDoco.com
date-what-day.txt
Linux-Unix/what-day-of-the-week-was-it-using-shell-script-commands.htm
4