Getting day from a date...

Hi,

I have a date input in MMDDYYYY format..
I have to give the day (whether that DD is sunday/monday...)
Is there any command for it...
Or do I have to write a script for that...

Thanks in Advance
Yeheya

Here is my datecalc script that can do this and more.