|
another thing is I need to have a total owed bucket for each Friday that comes into play.
I have this to get me my due date
c mydate adddur duedays:*days datedue
but how to then add to correct bucket? Would there be afield that would indicate week1,2 etc of a particular month?
Is this only possible to do in SQL?
If so, how do I do this.
I am willing to code a table of weeks and compare against it but I don't think the dates are the same types.
________________________________
From: Adam Glauser <adamglauser@xxxxxxxxxxxx>
To: rpg400-l@xxxxxxxxxxxx
Sent: Wednesday, November 12, 2008 1:38:34 PM
Subject: Re: date processing for end of week
Adam West wrote:
My question is, how does the program know when the next Friday is?
By figuring out what day of the week today is, then adding the difference between today and Friday.
If you don't want to use SQL, you could implement one of the day of week algorithms* for the Gregorian calendar.
HTH,
Adam
* http://en.wikipedia.org/wiki/Calculating_the_day_of_the_week
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.