Need ASP Routine for Date Difference

B

Bill

I need an ASP routine that will take a date, compare it to the present date,
and then output the difference in Years, Months, and Days.

(I'm too swamped to write it myself & I'm sure somebody already wrote it
better than I can)

If anyone can point me towards such a routine, I'd appreciate it.

Thanks,

Bill.
 
B

Bob Barrows [MVP]

D

Dave Anderson

Bill said:
I need an ASP routine that will take a date, compare it to the
present date, and then output the difference in Years, Months, and
Days.

This is a pretty fuzzy request. Consider a comparison of February 28 to May
29. Is that 3 months and 1 day or 2 months and 29 days? If the former, is
the difference between March 1 and May 30 (add 1 day to each) still 3 months
and 1 day? If the latter, what about March 3 and June 1 (add 3 days to
each)?



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,881
Members
47,418
Latest member
NoellaXku

Latest Threads

Top