|
> >I am trying to arrive at years and months on a subdur of date of employment >to current date. I can do *y or *m, but how can I get a breakdown of both >years and months. >Also, it only seems to work if I use a 2 digit field for the months, and >for employment, I would need greater than 2 digits. > >Any help would be appreciated. > >Jim Waymire Jim; Try this: (@Today and @EmpDateIso are Date variables) clear @Mon 6 0 clear @Years 6 0 @Today subdur @EmpDateIso @Years:*Years @Today subdur @EmpDateIso @Mon:*Months @Mon div 12 @Mon MVR @Mon Regards ___________________________________ Mauricio Della-Quercia Sr. Programmer Analyst LegendWare Systems (AS/400 Consulting) Toronto - Canada MDellaQuercia@csi.com Direct: (419) 919-4455 Fax: (905) 426-5371 __________________________________ ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-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.