Hello Sergio,
Here is our TODAY EXEC to give you all types of information.
/* REXX IS THIS YEAR A LEAP YEAR ? */
ADDRESS COMMAND
SAY DATE() ' DATE EXPRESSED NORMALLY'
SAY DATE('B') ' DATE EXPRESSED AS DAYS SINCE 01/01/0001 '
SAY DATE('C') ' DATE EXPRESSED AS DAYS SINCE 01/01/2000 '
SAY DATE('D') ' NUMBERS OF DAYS THIS YEAR'
SAY DATE('J') ' JULIAN DATE'
SAY DATE('E') ' EUROPEAN DATE FORMAT'
SAY DATE('W') ' DAY OF THE WEEK '
SAY DATE('M') ' MONTH '
SAY DATE('N',,,'/',) ' NORMAL DATE WITH SLASHES'
SAY DATE('O') ' ORDERED DATE '
SAY DATE('U') ' U DATE '
Ed Martin
Aultman Health Foundation
330-363-5050
ext 35050
-----Original Message-----
From: The IBM z/VM Operating System [mailto:[email protected]] On
Behalf Of Chip Davis
Sent: Monday, January 03, 2011 9:56 AM
To: [email protected]
Subject: Re: How can get the Week day ?
Be careful with Date('C'). It doesn't really give you the number of
days in the current century (as it was originally documented). It
returns the number of days since the beginning of the most recent year
ending in '00', e.g. '2000'.
If you are doing any sort of arithmetic with dates, your best bet is
Date('Basedate'), especially if your dates might span a century
boundary.
-Chip-
On 1/3/11 14:25 George Henke/NYLIC said:
RTIN_