Arexx (60/67)

From:Thomas Hurst
Date:20 Oct 99 at 20:14:58
Subject:Re: Date

From: "Thomas Hurst" <tom.hurst@clara.net>

Hi

On 20-Oct-99 08:42:38, Mike Cardwell (mickeyc@ukonline.co.uk) wrote:

> I need for a part of one of my scripts, something that can figure out
> the number of days between two dates eg 20-Aug-99 and 10-Oct-99 is 21
> days. The dates are in this format, and it must be able to work over a
> few months, and go into different years aswell. I'd appreciate any help
> anyone can give. Thanks.

You could use date(), but this would require some parsing of the date to a
format it can handle.

You could also use rmh.library's CompareDates() function after turning them
into datestamps using ParseDate()

Regards

Tom



Editor, AmiSITE <----------> http://www.amisite.de/
Freaky on ARCNet <----------> http://arcnet.vapor.com/
RC5: 74,103 2^28 blocks <---> http://distributed.amiga.org/

No one should ever see how laws and sausages are made.

--------------------------- ONElist Sponsor ----------------------------

??? Computer Questions ==> Free Answers From Live Experts ! ! !
go to EXPERTCITY.COM
<a href=" http://clickme.onelist.com/ad/expertcity15 ">Click Here</a>

------------------------------------------------------------------------
ARexx mailing list - No flames, no overquoting, no crossposting. Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com