Hi,
I think I could make it to work and I am not able to understand the REXX manuals on how to convert the dates using DATE function. I can have a date of nature 2015010 and it needs to be displayed as as Jan 10, 2015 or 2015 Jan 10. Should I need to translate the 2015010 to 20150110 first? I can also have dates like 2016.031.
And if you can guide me to a document on how to use the DATE function in REXX in a good way, it'll be a great help.
Thanks
Date conversion in REXX.
Moderator: mickeydusaor
-
- Global Moderator
- Posts: 825
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Date conversion in REXX.
seems pretty straightforward for me
the date function accepts up to three parameters
output_date = DATE(output_format, input_date, input_format)
the formats are explained in the manuals
the small complication for the J format is that YYYYDDD is not supported directly and You will have to use YYDDD
- small problem anyway , a substr will take care of it
the date function accepts up to three parameters
output_date = DATE(output_format, input_date, input_format)
the formats are explained in the manuals
the small complication for the J format is that YYYYDDD is not supported directly and You will have to use YYDDD
- small problem anyway , a substr will take care of it
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- New Member
- Posts: 6
- Joined: Tue Feb 02, 2016 10:38 am
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute