Re: Counting Days
From: Michael Kochendoerfer
Date: 4 May 2008
Additionally, you can use a date variable to loop, i.e. DO dLoop = TODAY
TO TODAY + 14, if your conditions are too complex. We use it
occasionally to sum up working days...
Michael
Geoff Crawford schrieb:
> At 02:28 PM 5/4/2008, Robert wrote:
>
>> Using Progress 9.1C on XP Pro.
>>
>> I need to know the amount of days between a known starting date and
>> the end
>> of the current year. Days cannot be Mondays or Fridays. This
>> routine also
>> needs to be usable in future years which of course includes leap years.
>>
>
> Number of days between dates in Progress is a simple subtraction:
>
> ASSIGN NumberField = EndDate - StartDate.
>
>
> From there, just adjust any additional/fewer days based on Monday or
> Friday.
>
>
>
> =====================================================================
> Geoff Crawford Phone: (973) 361 - 4224
> Innov8 Computer Solutions, LLC FAX: (973) 537 - 6946
> 711 Route 10 East, Suite 204 Email: b21b0721-86d0-328b-de11-69013e0103b7
> Randolph NJ 07869 Web: http://www.innov8cs.com
>
> Progress Blog: http://blogs.ittoolbox.com/database/progress/
>
> Take a Step Up to StepUp Accounting
>
>
>
>