× 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: Screen Dates
  • From: Chris Bipes <rpg@xxxxxxxxxxxxxxx>
  • Date: Thu, 2 Mar 2000 13:53:48 -0800

If the Day of Week + 1 is less than or equal to the Day of month go back a
month.  That is where Sunday = 1.
Example Saturday = 3/1/xx
Monday is day 2 and 3/3/xx
2 + 1 = 3 so you want to show 2/1/xx - 2/28-9/xx


Christopher K. Bipes     mailto:ChrisB@Cross-Check.com
Sr. Programmer/Analyst   mailto:Chris_Bipes@Yahoo.com
CrossCheck, Inc.         http://www.cross-check.com
6119 State Farm Drive    Phone: 707 586-0551 x 1102
Rohnert Park CA  94928 Fax: 707 586-1884

*Note to Recruiters
Neither I, nor anyone that I know of, is interested in any new and/or
exciting positions. Please do not contact me.


-----Original Message-----
From: Gade_R_Reddy@consecofinance.com
[mailto:Gade_R_Reddy@consecofinance.com]
Sent: Thursday, March 02, 2000 8:31 AM
To: RPG400-L@midrange.com
Subject: Screen Dates



Hey Guys,

I have a screen where i would take the current system date & display from
date and to date.

>From date is the first day of the current month (i get this from current
system date).
To date is current system date.

For example:-

1.) Lets say System Date = 03/01/00 ( Wednesday) & if user login on the
screen i would display From Date: 02/01/00, To Date: 02/29/00.

2.) Now Lets say if 03/01/00 falls on sunday & the user login on next day
03/02/00 ( monday ), I would have displayed From Date: 03/01/00, To Date:
03/02/00. Since there is no activity on sunday, I want to display From
Date: 02/01/00, To Date: 02/29/00 on the screen when user logins on
03/02/00.

Any suggestions how can i do the 2nd scenerio.

Thanks
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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 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.