|
I believe that the starting date is 01/01/1900. From my experience, the number should only be 5 bytes, i.e. 34578. This would put the date some where in 1994 (34578/365 = 94.73 years). Using the number 3457899 results in an extremely high value (3457899/365 = 9473.69 years). If the number were 3457899, the starting date would have to be approximately 01/01/-7474 (-7474 + 9473 = 1999). One of the problems with reversing the process may be that the original process may be incorrect if it results in a number such as 3457899. Keshava, if your resulting numer is 3457899, your formula/algorythm is incorrect. Sincerely, Bill Graziano -----Original Message----- From: Jim Langston [mailto:jlangston@conexfreight.com] Sent: Wednesday, October 13, 1999 2:58 PM To: RPG400-L@midrange.com Subject: Re: date function-clarify *Scratches his head* RPG/400 does dates, right? Is your 1999/12/12 stored as a date or a number? In RPG/400 can't you add one to a date like you are trying to do without all the shenanigans? This number you are coming up with, 3457899, how are you getting this from the date? Is it # of days since 01/01/0001? <snip> But, to answer your question, you'll need to run your date to number routine in reverse. What formula/algorythm are you using? Regards, Jim Langston keshava narasimha wrote: > Hi ! > > Let me be more clear on my question first... > > I have a date 1999/12/12 o.k..When I convert this date into days I you get > a figure. (like 3457899) > > Now if need to display tomorrows date , I add 1 to this number and how > do I display 1999/12/13 is the Question?(the function needs to be done using > RPG/400 only not ILERPG) > > Thanks for all your time. > > Keshav > > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.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 > +--- +--- | 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 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.