×
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.
Hard code _any_ past Friday as a constant in the D-specs. Say,
January 5, 2001, for example? Then remove all the complete weeks
between Jan 5, 2001 and your target date. (Weeks are always 7 days
long, so by removing the whole weeks(dividing by 7), you have only the
part week left, That would be the remainder.) That remainder is your
offset.
Don't make this too hard. It really is that simple. lol I had trouble
keeping it simple enough when it was first explained to me
Today (Wednesday, 11/12/2008) minus last Friday (11/7/2008) is 5 days.
Divide by 7 is 0 weeks & 5 days. (Days-in-a-week(7) - Offset(5) =
(Days-until-Friday(2). Today(11/12/2008), plus 2 days is next
Friday(11/14/2008).
Adam West wrote:
My question is, how does the program know when the next Friday is?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.