title: Converter failed to convert value of type 'system.datetime' to type 'datetime' in windows phone 8.1 Datepicker
body: <p>I am creating a windows phone 8.1 app using MVVM pattern. I have used datepicker, and I want to get the value(date) of the <strong>datepicker</strong> in the viewModel, so I have binded this with a property in the viewModel. After running this app I am getting an error in the output window of Visual Studio.</p>
  
  <p><strong>Error: Converter failed to convert value of type 'System.DateTime, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' to type 'DateTime'; BindingExpression: Path='Date' DataItem='App1.ViewModel.MainViewModel'; target element is 'Windows.UI.Xaml.Controls.DatePicker' (Name='null'); target property is 'Date' (type 'DateTime').</strong></p>
  
  <p>Here is my,
  Xaml view:</p>
  
  <pre><code>&lt;DatePicker Grid.Row="1" Grid.Column="1"
                  VerticalContentAlignment="Center"
                  HorizontalContentAlignment="Center"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Center" Margin="26,-0.333,0,0.5"
                  Date="{Binding Date}"
                  /&gt;
  </code></pre>
  
  <p>ViewModel Property:</p>
  
  <pre><code> private DateTime _date;
      public DateTime Date
      {
          get { return _date; }
          set
          {
              _date = value; 
              RaisePropertyChanged();
          }
      }
  </code></pre>
  
  <p>Can anyone help me in solving this error.</p>