Are you sure you want to depend on the week number to find the second
Tuesday? What defines the first week? I'd start from the first day of the
month, check the day of the week, and when I find the first Tuesday, I'd
add 7 to that date.
Steve
Steven Morrison
Fidelity Express
John McKee <jmmckee@xxxxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
12/10/2008 04:54 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc
Subject
Week of the month
I have a program that runs weekly on Tuesday. Now, the user wants this
program
run on the second and fourth Tuesdays. I have looked through the v5r4
APIs,
but don't see anything that jumps out as something that can return the
week of
the month. Two possibilities: I have not seen it yet, or it isn't there.
Is there a function that can return the week of the month?
Thanks
John McKee
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.