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


  • Subject: ODP: date conversion
  • From: marcin.sagan@xxxxxx
  • Date: Tue, 28 Mar 2000 11:36:35 +0200

Try this, I hope will help
        
 *---------------------------------------
d DateMDY         S               D   DatFmt(*MDY)             
d DateCYMD        S              7  0                          
d aDateCYMD       S              7A                            
d aDateCYMDSep    S              9A                            
                                                               
                                                               
 * Moveing example date to variable 
c     *MDY          MOVE      112200        DateMDY            

 * Converting MMDDYY to CYYMMDD (numerical)
c     *CYMD         MOVE      DateMDY       DateCYMD           

 * Converting MMDDYY to CYYMMDD (character no separators)
c     *CYMD0        MOVE      DateMDY       aDateCYMD          

 * Converting MMDDYY to CYY/MM/DD (character with separarors)
c     *CYMD         MOVE      DateMDY       aDateCYMDSe
 *---------------------------------------


   
 Marcin Sagan           

> -----Oryginalna wiadomość-----
> Od:   Lewis Libman [SMTP:LLibman@behr.com]
> Wysłano:      27 marca 2000 22:44
> Do:   rpg400-l@midrange.com
> Temat:        date conversion
> 
> I want to convert a 6 position date (mmddyy or yymmdd) in ILE to a 7
> position date (cyymmdd).  I must have missed some reading in the manual.
> I'm at a loss for the quick and proper date conversion.  Help.
> 
> 
> 
> Lewis Libman
> llibman@behr.com
> 714 545 7101 x2118
>  
> 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.