View previous topic :: View next topic
|
Author |
Message |
Adit Nigam
New User
Joined: 08 Apr 2010 Posts: 9 Location: Bangalore
|
|
|
|
Can anyone tell me how can I compare two dates in Rexx. is there a direct function? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What manuals have you read. They are available from the sticky topic at the top of the CLIST / REXX forum.
Take a look at the DATE function |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If they are both in the Base date format, then you can subtract one date from the other to determine the number of days. |
|
Back to top |
|
|
Adit Nigam
New User
Joined: 08 Apr 2010 Posts: 9 Location: Bangalore
|
|
|
|
thanks Kevin,
I can get the current date in Base format, but how can I change some date which I am reading from a file to base format? or is there any other method of comparing dates. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I suggest that you read the link that Kevin supplied in his original reply. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Adit Nigam
New User
Joined: 08 Apr 2010 Posts: 9 Location: Bangalore
|
|
|
|
Thanks Enrico,
The links were really helpful. I had used the date functions many times but didn't knew all the options available.
Thank you very much |
|
Back to top |
|
|
Adit Nigam
New User
Joined: 08 Apr 2010 Posts: 9 Location: Bangalore
|
|
|
|
sorry Kevin, I didn't realized that you gave the direct link to the date function. |
|
Back to top |
|
|
|