How could I get a date's day of the week (ie Sunday) without using the date -d command?
So if a date was specified, it would give me the day of the week.
The date -d command looks something like this
date -d $inputdate | cut -c 1-3
the only problem with that statement is that it won't work for dates prior to the 21st century.