Setting DatePicker Value
===

I currently have a program that takes the value from a datePicker and have the date saved as a string. I only needed the date not the time so i used the following code to save the date value:

<code>
  DateTime StartDate;
  
 
  String inMyString;

  savedDate = datePicker1.SelectedDate.Value.Date;

   inMyString =   savedDate.Date.ToShortDateString()

</code>

I have the inMyString pushedBack into my list and now i want to place it back into the datePicker.

On msndn is shows me the following example to set the date.

<code>
dateTimePicker1.Value = new DateTime(2001, 10, 20);
</code>

the problem is that having .Value after my date picker is not an option (it doesnt show in intellisense.)

I have also tried 
<code>
datePicker1.SelectedDate.Value= new DateTime (inMyString)
</code>

and also converting the inMyString to type dayTime but it still does not work.


Any thoughts on how to do this?

Any Suggestions and comments are appreciated.

Thanks!

(Language is C# and it is a WPF project)