How to get date difference?

Hi All, is there any function to get the date difference between 2 dates? ie. get the months difference of 01/12/02 and 03/02/05?

Or any way to do this? To get how many months from 01/12/02 to 03/02/05?

Thanks

Subject: How to get date difference?

Shelyn, before you post questions like this, search the forum. There are literally hundreds of questions and answers on exactly this topic in the 5 and 6 forums.

Subject: RE: How to get date difference?

Not to be a smart aleck, but when i search on “date difference” in this forum, it don’t get much. Any suggestions on what to search for. Thanks.

Subject: RE: How to get date difference?

Same here. I want to know the number of days between two dates. I’m looking at the forums and not finding much. Notes Help says little as well.

If someone is going to take the time to respond to the post by telling telling them to search the forum because there are hundreds of posts, why don’t they take one extra moment and post the link to at least one of the hunderd posts.

I could use it as well.

Subject: RE: How to get date difference?

Try this…

Cstr(dateTime2.TimeDifference( dateTime)/86400)

Subject: RE: How to get date difference?

i 've tried using dis …not workin…any other alternative