Hi Diane
Look at the following web page -
http://www.as400pro.com/tipView.php?cat=RPG&key=2490
especially for
// Beginning of Month Date to Date Field
Then compare your date to the beginning of the month
If its less than the beginning of the month - then that date is to be considered - =otherwise - do not consider it
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of dmmueller@xxxxxxx
Sent: Tuesday, October 10, 2017 9:57 AM
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: Date Comparison yyyymm
Group,
I have a date field "payment date" that I need to compare to current date, but only comparing the year & month.
Any payments received in the current month should be disregarded,
I know this is simple, and I'm over thinking it .
Diane Mueller
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.