My App is on Windows phone 8.1 , It is like a reminder ,For that i need to retrieve the date and time that the user sets , and to make a notification at that specified time and date , My Code is :

```
  // Get the begin time for the notification by combining the DatePicker
  // value and the TimePicker value.
        DateTime date = (DateTime)FromDatePicker.Value;

        DateTime time = (DateTime)Reminder1.Value;
        DateTime beginTime = date + time.TimeOfDay;

```

But the problem is that i'm getting Error for Typing .Value Such as:

Error 1 'Windows.UI.Xaml.Controls.DatePicker' does not contain a definition for 'Value' and no extension method 'Value' accepting a first argument of type 'Windows.UI.Xaml.Controls.DatePicker' could be found (are you missing a using directive or an assembly reference?) 

I don't know How can i substitute this '.Value' to get the exact value for the notification ?