title: Date Format as "MM-dd-yyy" in <p:datatable> with dynamic column
body: <p>I'm having a datatable with dynamic columns generated. i have a date column to be displayed, but in a specific format</p>
  
  <p>in my datatable without dynamic columns generation ... i make the date to display in the specific format by this way</p>
  
  <pre><code>&lt;p:dataTable .....&gt;
    &lt;p:column headerText="Date" id="dateID"
                          sortBy="#{iterator.updatedDate}"
                          filterBy="#{iterator.updatedDate}"&gt;
  
                          &lt;h:outputText value="#{iterator.updatedDate}"&gt;
                              &lt;f:convertDateTime pattern="MM-dd-yyyy" /&gt;
                          &lt;/h:outputText&gt;
  
    &lt;/p:column&gt;
  &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>what could i do for getting the same outcome in my datatable with dynamic columns...</p>
  
  <p>can any help me in fixing this...</p>