| From: | Neil Bothwick |
| Date: | 23 Oct 99 at 00:49:11 |
| Subject: | Re: Date |
From: "Neil Bothwick" <neil@wire.net.uk>
Thomas Hurst said,
>> 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.
Why? Date is perfectly capable of converting dates to days since
1-Jan-1900 or even 1-Jan-0001
> You could also use rmh.library's CompareDates() function after turning them
> into datestamps using ParseDate()
That sounds like /far/ too much work.
Neil
--------------------------- 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