KSH day of week script in past

From: mtb 247 (mtb247@hotmail.com)
Date: Wed Jul 13 2005 - 12:00:29 EDT


Hello,
I am trying to figure out how to calculate the day of the week (ie - mon,
tues, wed, etc...) for a date in the past using ksh.
How can I do this?
I have a script that works if I want to use todays date, but I need to feed
in a date in the past in the format mm/dd/yy and get the day of the week.
I have to use KSH because I have a large script in KSH and this needs to be
part of that.
I do not know perl.

Thanks in advance!

Here is my sample code:

DAY=`/usr/bin/date|awk '{print $1}'`
if [[ $DAY == "Mon" ]]
then
echo "prior business day is Friday"
fi

CODE I NEED:

DATE=12/31/04
# NEED CODE HERE TO TELL ME WHAT DAY OF THE WEEK $DATE IS.

_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:06 EDT