× 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.



alphadate = '1100802144806' ;
datefld = %date(%subst(alphadate:2:6):*YMD0) ;

Tested this and it seems to work.



message: 7
date: Wed, 4 Aug 2010 16:24:15 -0500
from: "sjl" <sjl_abc@xxxxxxxxxxx>
subject: Date conversion question

All -

I'm using the QUSRMBRD API to retrieve member description information.

The member creation date is a 13-byte alpha value returned in the form
CYYMMDDHHMMSS.

Example: '1100802144806' (August 8, 2010, 14:48:06)

What is the correct way to convert this value into a date field for
performing a date comparison in an RPG program?

Regards,
sjl







------------------------------


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.