× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Since it appears that the format is consistent (e.g. relevant leading zeros are in place) then you should be able to simply substring out what you need and then convert it to the numeric format you need.

e.g. CYYMMDDnumber = %Dec( %Subst(JSONData: 1: 10): *CYMD );



The part after the + is a time zone adjustment - only you can determine if that needs to be applied to the time.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jul 4, 2019, at 3:20 AM, Don Brown <DBrown@xxxxxxxxxx> wrote:

I am working on a new project and the first lot of test data i have
received includes date stamps in the format

"licence_expiry": "2020-01-01T07:53:00+00:00",

After a quick browse of the ILE RPG Reference I am not seeing any format
of the date data type that matches this format.

Am I just not looking hard enough or how would this be best processed in
ILE RPG ?

As this data will be going into an existing database the dates and times
are stored as numeric fields.

So I am really just wanting to retrieve the date and time values but I am
not understanding the last +00:00 ? Is this time zone or time offset
related ?

Thanks for any assistance



Don Brown


______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
______________________________________________________________________
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.