To find day out of date in HP-unix

Dear Frends,

Could you please help me with the command or option by which I can find
day where the input is date(can be of future or past).

I do have for linux, However it is not working @ hp unix.

Please help.

Regards
Rahul

Is this what you tried: date +%d

no no... actually it should give ... whether it is monday or tuesday or wed......

suppose if I give, 23-09-2008, it should give tuesday...

For Linux I am using the following :

CHKDT=`date -d $LIMGDT +%a`

however hp unix it is not working....

That is not what date does or is for in unix (non standard...) have you checked it works on other platforms? (I just done AIX and SOLARIS...) look at the man pages...

---------- Post updated at 14:27 ---------- Previous update was at 14:23 ----------

I you used this forum the way you agreed to when joining, you would have, using the search tool, found this great thread for a start:
http://www.unix.com/answers-frequently-asked-questions/13785-yesterdays-date-date-arithmetic.html

You are looking for a feature that comes in GNU Date which is what you are using in Linux. You can get it from the HP-UX Porting Centre in the GNU Core Utils depot.