title: How to calculate if Date is more than "2 years ago" with a Salesforce formula field?
body: <p>I need to calculate in a custom field if a Date is more than 2 years ago ... if so then return a YES or if it is not then return a NO</p>
  
  <p>I'm trying this formula, making the return type "text" <code>Last_won_deal_date__c &gt;  DATEVALUE("2 years ago")</code> but it's giving the following error:</p>
  
  <blockquote>
    <p>Error: Formula result is data type (Boolean), incompatible with
    expected data type (Text).</p>
  </blockquote>