title: How do I create a custom Gravity Forms Merge Tag to display entry date and time?
body: <p>I almost have it figured out but stuck due to lack of PHP knowledge; basically I need a custom Gravity Forms merge tag to display the "date_created" entry object as this has the date and time of form submission. It should look something like this but this is wrong:</p>
  
  <pre><code>&lt;?php
  add_filter('gform_custom_merge_tags', 'custom_merge_tags', 10, 4);
  function custom_merge_tags($merge_tags, $form_id, $fields, $element_id) {
  
      if($entry["date_created"]($form_id))
          $merge_tags[] = array('label' =&gt; 'Date Created', 'tag' =&gt; '{date_created}');
  
      return $merge_tags;
  }
  ?&gt;
  </code></pre>
  
  <p>Any help?</p>