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



%DATE came out at V5R1 - it is the same all the way to 7.1, haven't checked 7.2.

On 1/7/2015 8:29 PM, Booth Martin wrote:
One question no one seems sure about what stage of its evolution was the %date bif in V5R3?


On 1/7/2015 3:32 PM, Alan Campin wrote:
I am lost here. If we have a numeric value, why are we converting it to an
alpha value?

d NumDate...
d s 8p 0 Inz(20140101)
d DateField...
d s d
d NumDateUSA...
d s 8p 0
d NumDateAlpha...
d s 10a Inz('01/01/2014')
DateField = %Date(NumDate:*ISO); // or whatever format you need.

// convert to *USA format.

NumDateUSA = %Dec(%Date(NumDate:*ISO):*USA);

NumDateUSA should be 01012014.

DateField = %Date(NumDateAlpha:*USA/);

etc.




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.