RE: Compute Date Duration

Njål Fisketjøn <njal.fisketjon-gyXR7Lt7FVk/[email protected]>
Newsgroups gmane.comp.lang.as400.mi
Message-ID <[email protected]>
Beppe Costa wrote:

> For those who are interested to explore the MI builtin _CDD, the code
> follows.
> 
> It returns a duration in the format 8,0 Pack. In this case the returned
> value is 00501130 (that is 50 years + 11 month + 30 days).
> 
> Than, how can I convert this figure to a number of days ?
> 
> I've also tried to use CVTD but always unsuccesfully.


%DIFF is much easier to use :))

 


_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.