Add field date to views tpl I had this issue before which I solved:
Add field date to node tpl

Now I need to add the date field in the views.tpl.php

Here's the code:



I want to replace "$date->node_created" with the field_date.

Here's what I know: I can't use $content['field_date'] because the $content array doesn't exist in this template file.

Thank you
To know what fields you have available to your View, you can use a custom module, and there you write the following:

function hook_views_pre_render(&amp;$view) {
     if($view-&gt;name == "YOUR_VIEW_NAME"){
         foreach($view-&gt;result as $key =&gt; $r){
             echo "&lt;pre&gt;"; print_r($view-&gt;result[$key]); echo "&lt;/pre&gt;";
     ....
         } // foreach
      } // if view-&gt;name
} // function