title: WPF DateTime Formatting
body: <p>I need to format the Date, so I used the below:</p>
  
  <pre><code>        &lt;xcdg:Column Title="Registratiedatum" FieldName="RegistratieDatum" Width="1*"&gt;
          &lt;xcdg:Column.CellContentTemplate&gt;
              &lt;DataTemplate&gt;
                     &lt;TextBlock Text="{Binding StringFormat='{}{0:dd/MM/yyyy HH:mm:ss }', TargetNullValue={x:Static System:String.Empty}}" /&gt;
                  &lt;/DataTemplate&gt;
          &lt;/xcdg:Column.CellContentTemplate&gt;
          &lt;/xcdg:Column&gt;
  </code></pre>
  
  <p>However, some of the Date is Null, so I would like those fields to remain empty, but I guess due to the formatting it appears like this:</p>
  
  <p>01/01/0001 00:00:00</p>
  
  <p>Any idea how to restrict the format only for "not null" values? Sorry, if it might be too basic question, but I am still at the beginning stage of learning.</p>