Activity Forums Salesforce® Discussions How to get start date and end date with time in single function from calendar in Salesforce? Reply To: How to get start date and end date with time in single function from calendar in Salesforce?

  • Archit

    Member
    March 28, 2018 at 2:43 pm

    Hello Amresh,

    We can achieve it by Salesforce standard functionality so please follow below steps to do so.

    • Create Date field on any object name "Start Date"
    • Create Date field on same object name "End Date"
    • Create Formula field on same object name "Number of days"
    • make sure the return type of formula field should be number.
    • after creating record you can achieve what you want.

    Thanks