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



can someone confirm that this code bombs on their system? The following
code converts from character to date. Each of the %date functions work for
me except the last one. Converting from varying to date when the date
format is *USA.

** --------------------- ConvertTester --------------------------
** test conversion of string to date.
pConvertTester b
dConvertTester pi

d ch30 s 30a
d dt1 s d
d vary30 s 30a varying
/free
// convert character date in *iso format.
vary30 = '2012-10-01' ;
ch30 = vary30 ;
dt1 = %date(ch30:*iso) ;
dt1 = %date(vary30:*iso) ;

// convert character date in *usa format.
vary30 = '10/1/2012' ;
ch30 = vary30 ;
dt1 = %date(ch30:*usa) ;

// this bombs.
dt1 = %date(vary30:*usa) ;

/end-free
p e

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.