title: WPF Date String Format in XAML
body: <p>I am trying to format string after a date has been selected by the DatePicker. The Format that I am getting is "9/5/2013 12:00:00 AM" and what I am trying to get is "9/5/2013". Can someone tell me what I am doing wrong with the string format?</p>
  
  <pre><code>&lt;DataGridTemplateColumn Header="Start"&gt;
      &lt;DataGridTemplateColumn.CellTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBlock Text="{Binding Start, StringFormat=d}" FontFamily="Verdana" /&gt;
          &lt;/DataTemplate&gt;
      &lt;/DataGridTemplateColumn.CellTemplate&gt;
      &lt;DataGridTemplateColumn.CellEditingTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;DatePicker SelectedDate="{Binding Start}" FontFamily="Verdana"  &gt;
                  &lt;DatePicker.CalendarStyle&gt;
                      &lt;Style TargetType="Calendar"&gt;
                            &lt;Setter Property="DisplayMode" Value="Month"/&gt;
                      &lt;/Style&gt;
                  &lt;/DatePicker.CalendarStyle&gt;
              &lt;/DatePicker&gt;
          &lt;/DataTemplate&gt;
      &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;
  &lt;/DataGridTemplateColumn&gt;
  </code></pre>