Use Date::Manip

>From the docs...

Among other things, Date::Manip allow you to: 

1. Enter a date and be able to choose any format convenient 

2. Compare two dates, entered in widely different formats to determine which
is earlier 

3. Extract any information you want from ANY date using a format string
similar to the Unix date command 

4. Determine the amount of time between two dates 

5. Add a time offset to a date to get a second date (i.e. determine the date
132 days ago or 2 years and 3 months after Jan 2, 1992) 

6. Work with dates with dates using international formats (foreign month
names, 12/10/95 referring to October rather than December, etc.). 

7. To find a list of dates where a recurring event happens. 

Each of these tasks is trivial (one or two lines at most) with this package.



HTH

John

-----Original Message-----
From: Edd Dawson [mailto:[EMAIL PROTECTED]]
Sent: 29 August 2001 09:56
To: [EMAIL PROTECTED]
Subject: Date Comparison


Hi,

I have dates that I get off an Oracle database and so come in the 
format DD-MMM-YY (e.g 10-AUG-01) I would like to be able to do a 
comparison that decides whether the date I get off the Oracle 
database is more or less than 2 days ago. 

I seem to be stumped on this one. Could anyone point me in the 
right direction?

Thanks very much.

Edd

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--------------------------Confidentiality--------------------------.
This E-mail is confidential.  It should not be read, copied, disclosed or
used by any person other than the intended recipient.  Unauthorised use,
disclosure or copying by whatever medium is strictly prohibited and may be
unlawful.  If you have received this E-mail in error please contact the
sender immediately and delete the E-mail from your system.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to