How to Find Date Difference in Visualforce Page?

Instead of creating formula fields, we can just subtract two different date fields in the Visualforce page.

Sample Code:

<apex:page>
    <apex:outputText>
        {! EndDate - StartDate}
    <apex:outputText>
</apex:page>

Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0