× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The conceptually simple way to to do the "Day of any Date" calculation is to 
use the modulus %MOD function and a known date.  
 
For instance, January 1, 2004 is a Thursday.
 
Pick any other date and subtract it to get the number of days between the two 
dates.
 
Divide by 7.
 
If the remainder is 0, you know that the day of the date is Thursday.  If the 
remainder is 1, it is Friday, 2=Saturday, and so on.
 
This is applied high school math.
 
At least you'll avoid the U.S. Copyright Laws with this technique  (or has it 
already been patented??!?!)
 
<small rant>
patents for software (and algorithms) make as much sense as bicycles for frogs. 
 It the use or application that adds the value, not the idea itself.
</small rant>
 
William


date: Mon, 3 May 2004 10:07:46 -0500
from: "Bob Cozzi" 
subject: RE: Need to know Day of any Date

Werner, 
Again, I have no objection to it being posted here. None at all.

>> Then I probably will no longer issue a snippet because I never know where
it came from.

And therefore you see the insanity of the new U.S. Copyright Laws. 
-Bob


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Werner Noll
Sent: Monday, May 03, 2004 10:07 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: AW: Need to know Day of any Date

Bob,

I'm not sure, but it surely could be from you. I didn't remark where the
codes came from which I collected since a long time from all over the world
in my toolbox. I never affirmed that I invented these things by myself as
well as I never put my own copyrigth on something which I offer somewhere as
example or for common usage and I also would never sell or charge such
things.
I didn't feel to have breached a law but let me know if you raise an
objection. Then I probably will no longer issue a snippet because I never
know where it came from. 

Kind regards,
Werner Noll
-----Ursprüngliche Nachricht-----

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.