title: How to format Windows.UI.Xaml.Controls.DatePicker to dd-MM-yyyy in UWP?
body: <p>I currently have a Windows.UI.Xaml.Controls.DatePicker that defaults to the American date notation of MM-dd-yyyy. I'd like to change that to dd-MM-yyyy, but I cannot find how to do it with this particular DatePicker. I've seen questions and answers here on SO that use a DatePicker but unfortunately it's not the same DatePicker.</p>
  
  <p>My xaml:</p>
  
  <pre><code>&lt;DatePicker Date="{Binding someDate, Converter="{StaticResource DateTimeToDateConverter}", Mode=TwoWay}"/&gt;
  </code></pre>
  
  <p>The converter:</p>
  
  <pre><code>public override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo language)
  {
    DateTime date = (DateTime)value;
    return date;
  }
  </code></pre>
  
  <p>I've tried adding the language parameter to the DatePicker, but it is NOT affected at all... I also change the system setting language from en-US to nl-NL, that also didn't work. Does anyone know what I should do make the DatePicker format to dd-MM-yyyy?</p>
  
  <p>EDIT: The date comes in the right format from the converter, but the actual visual XAML object is MM-dd-yyyy.</p>