Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Formula

Status
Not open for further replies.

bonio16

Technical User
Nov 9, 2012
2
GB
Hi,

I need to know how in business object i can calculate the days months and years between 2 dates?

eg -
Date 1 - 07/11/2014
Date 2 - 12/04/1958

Thanks
 
hi,

So is that dd/mm/yyyy or mm/dd/yyyy. The former, I expect as you are across the pond from The Colonies. ;-)

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
What you're looking for is DateDiff. It can return the number of days or years or whatver unit you want between two dates.

Datediff('d',{date1},{date2}) would give you the number of days between the two dates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top