Calculating the time taken between two dates

By | March 29, 2014

While working on a project we had to display the time difference between two field values. We had two date fields where the user could enter a start date and end date for a task. We had to display the total time taken between the start date and end date in a separate field. We can do this by using the salesforce formula field.

To do this, create a formula field that will return Text as the formula return type. Insert the following formula – datediffgt0

Now our formula field will calculate the time taken from the start date and the end date and display the result in the number of days, hours and minutes as shown in below screenshot.datediffgt1
About Us
Greytrix as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offers Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that requires apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce integration with Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data Migration, Integrated App development, Custom App development and Technical Support to business partners and end users.

Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information, please contact us at salesforce@greytrix.com. We will be glad to assist you.

Related Posts