× 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.


  • Subject: Re: Determine Week in Year
  • From: "James W. Kilgore" <eMail@xxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 01 Nov 2000 22:42:29 -0800
  • Organization: Progressive Data Systems, Inc.

Richard,

This is not workable.  ISO standards specify that week #1 is the first
week that contains 4 or more days.  Now without getting into which day
of the week you may consider the first day (Sunday like the more popular
calendars or Monday like the rest of the calendars) You can have week #1
have days 1,2,3,4 and week #2 has days 5,6,7,8,9,10,11 so in your
example day 14 is in week #3, not week #2.

Richard Reeve wrote:
> 
> Scott,
> 
>      I believe that if you were to convert the date to
> julian and then divided the days (the last three
> positions of the julian date) by 7 you would get the
> week that the date fell in.
> 
>      For example for julian date 00014 you would
> divide 014 by 7 and find that the week was 2.
> 
>      Hope this helps.
>
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.