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



I don't have a 400 to test this theory, but if you convert the date to a
julian type date (*JUL) and then divide the portion of this date that has
the number of days into the year -by- 7... (should probably round up here)
Just a guess but should be pretty simple.
Capt.j

----- Original Message -----
From: "Andy Youens" <Andy@FormaServe.Co.Uk>
To: <rpg400-l@midrange.com>
Sent: February 18, 2002 4:44 AM
Subject: Week Number Coding


Hi all

Does anyone have any sample code for calculating the week number given a
date?

Couldn't find anything in the archives.

TIA.

Regards

Andy Youens
FormaServe Systems (UK)
T: 01908 319566
F: 01908 316000
M: 07770 380276
E: mailto:Andy@FormaServe.Co.Uk
W: www.FormaServe.Co.Uk

This message contains confidential information and is intended solely
for the named addressee.

If you are not the named addressee you should not distribute, copy or
take any action in relevance to the contents of this email.

FormaServe Systems does not accept liability for any errors or omissions
in the contents of this message or attached documents or for any damage
suffered by your computer system caused by any errors or viruses
contained in the email or any attached documents.

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.




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.