View previous topic :: View next topic |
Author |
Message |
coolguy Beginner

Joined: 01 Dec 2004 Posts: 82 Topics: 28
|
Posted: Tue Mar 06, 2007 9:11 am Post subject: Date calculations |
|
|
Hi
I want to calculate some Date funcion
1) I am reading the Date from the file according to the date i want to find out the corresponding Monday and friday
For Ex suppose i got a date 06/Mar/2007 means I need to find out the dates for the Monday and Friday (ie 5th mar 2007 and 9th mar 2007
2) another one case according to the date we need to find out first wroking day of the month and the last working day of the month
working day means monday to friday
my date format is ddmmyy
Pls give me your ideas , it 'll helpful for me
Thanks
Cool |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Tue Mar 06, 2007 9:21 am Post subject: |
|
|
The Rexx Date() function will give you the day of week and so will one of the PL/1 date functions. If you are using COBOL then you may be in luck but I do not know - if you are in an LE environment then you may be - I do not know because I am not. I have the source for a PL/1 module which you could convert to cobol if nobody comes up with the answer. _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Mar 06, 2007 9:32 am Post subject: |
|
|
coolguy,
Search this board for "dayofweek" and you will find many examples.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
coolguy Beginner

Joined: 01 Dec 2004 Posts: 82 Topics: 28
|
Posted: Wed Mar 07, 2007 12:58 am Post subject: |
|
|
Thanks Kolusu , It was rellay help me a lot
Thanks thanks a lot
Cool |
|
Back to top |
|
 |
|
|