Hi,
please how do i get the date alone from the datepicker of WPF C#. i get this after choosing the date 23/03/2013 12:00AM i only want 23/03/2013.
i Have not seen any method of extracting this from the datepicker please help.
thanks
DateTime
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Mar 25, 2013, 3:59 PM EDT
if (datePicker1.SelectedDate != null)
{
string date = ((DateTime)datePicker1.SelectedDate).ToShortDateString();
MessageBox.Show(date);
}