That's interesting
But how can you use a decimal portion of a month
Is .6 of February (16.8 days) the same as .6 of December (18.6 days)
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
Ricky Thompson
<rthompson@qualit
estrx.com> To
Sent by: "rpg400-l@xxxxxxxxxxxx"
rpg400-l-bounces@ <rpg400-l@xxxxxxxxxxxx>
midrange.com cc
Subject
01/06/2011 09:28 Substract two dates to get the
AM number of months
Please respond to
RPG programming
on the IBM i /
System i
<rpg400-l@midrang
e.com>
Is there a way to get the number of months in a numeric value with decimal
values? So if it 1.6 months between two dates. I'm trying to mimic
something someone is doing in Crystal Reports and it returns a partial
month. This is what I'm currently using.
DateDiff = %diff(Date1 : Date2 : *Months);
Ricky Thompson
AS/400 Programmer
Qualitest/Vintage Pharmaceuticals
120,130, 150 Vintage Drive
Huntsville, AL 35811 USA
Phone: +1 256-859-4011 x7191 Direct Line: +1 256-799-7191
rthompson@xxxxxxxxxxxxxxx
"This e-mail, and any attachments, may contain confidential, and/or legally
privileged information, and is intended solely for the use only of the
named addressee(s). If you have received this e-mail in error, please
notify the sender immediately, and permanently delete the original and any
copies of this e-mail, and any attachments, without printing, reading or
copying them. Any use, distribution, or copying of this e-mail other than
by the intended recipient is strictly prohibited. QUALITEST accepts no
liability for the content of this email, or for the consequences of any
actions taken on the basis of the information provided. The recipient
should check this e-mail and any attachments. QUALITEST accepts no
liability for damage caused by any malicious code potentially transmitted
by this e-mail."
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.