What os version are you running?  v4r3 allows you to specify a date format
as per the manual:

*  Indicator 19 will not be set on, since the character field is a

    *  valid *MDY date, without separators.

   C     *MDY0         TEST (D)                Char_Date              19   

> -----Original Message-----
> From: John Hall [mailto:jhall@hillmgt.com]
> Sent: Thursday, July 22, 1999 9:49 AM
> To: RPG400-L@midrange.com
> Subject: Test Date
> 
> 
> I need to convert an ISO date to a *MDY date
> 
> some of the ISO dates are not valid *MDY dates
> 
> How do I test the ISO date to see if it will convert to a *MDY?
> 
> The TEST opcode does not allow you to specify a date format to test
> against
> 
> TIA
> 
> John Hall
> Home Sales Co.
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * * * * *
> * This is the RPG/400 Discussion Mailing List!  To submit a 
> new         *
> * message, send your mail to "RPG400-L@midrange.com".  To 
> unsubscribe   *
> * from this list send email to MAJORDOMO@midrange.com and 
> specify       *
> * 'unsubscribe RPG400-L' in the body of your message.  
> Questions should *
> * be directed to the list owner / operator: 
> david@midrange.com          *
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * * * * * *
> 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


This thread ...


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

This mailing list archive is Copyright 1997-2019 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].