title: Date formatting in WPF datagrid
body: <p>I want to change is the date column from a format &quot;DD/MM/YYYY HH:MM:SS&quot; to &quot;DD.MM.YYYY&quot;.</p>
  <pre><code>  &lt;DataGrid Name=&quot;dgBuchung&quot; AutoGenerateColumns=&quot;True&quot; 
              ItemsSource=&quot;{Binding}&quot; Grid.ColumnSpan=&quot;3&quot; &gt;
    &lt;ab:DataGridTextColumn Header=&quot;Fecha Entrada&quot; Width=&quot;110&quot;  
         Binding=&quot;{Binding date, StringFormat={}{0:dd/MM/yyyy}}&quot; IsReadOnly=&quot;True&quot; /&gt;
                          
  &lt;/DataGrid&gt;
                                        
  </code></pre>
  <p>Unfortunately that code throws an <code>XMLParseException</code>.</p>
  <p>First of all, is this way of solution possible while using AutoGenerateColumns?
  If no, how else can I try to handle this?</p>
  <p>If yes, what is the problem with the code above?</p>