new2cobol
New User
Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
Need a clarification...
I need a date (say, 12/01/2005) to be converted into Julian.
DATE('S','12/01/05','U') gives me standard date
DATE('E','12/01/05','U') gives me European format, so I tried
DATE('J','12/01/05','U') but it did not work!!! I changed the input format and checked with 'S', 'E' but still didn't work...
What am I doing wrong here?
I think I had tried this in another shop and it worked... |
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Take a close look at the note concerning the use of the Julian format in the manual.
Basically, you must use
DATE('D','12/01/05','U') and then concatenate the desired value for the year. |
|