|
First, subtract the days between a known day and the target date Then remove the whole weeks and save the remainder. Finally, the remainder is the offset number of days from your known date. SubDur 20030225 from 20040101 Divide the answer by 7, save the remainder. The remainder is the offset from Tuesday (your known date) --------------------------------------------------------- Booth Martin http://www.MartinVT.com Booth@xxxxxxxxxxxx --------------------------------------------------------- -------Original Message------- From: RPG programming on the AS400 / iSeries Date: Monday, February 24, 2003 22:01:50 To: RPG400-L@xxxxxxxxxxxx Subject: Day of the Week Hi! Is there a tool or a way in which i can determine the day of the week of the given date? Example: 1.) 2003/02/25 - Tuesday 2.) 2004/01/01 - ???? Would appreciate your help. Thanks a heap!! Dave :-Þ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx 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 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.