score:1

Accepted answer
DateTime date = Convert.ToDateTime(DropDownListDate.SelectedValue.ToString());

score:0

string dateString = DropDownListDate.SelectedValue.ToString();

string format = "dd/mm/yyyy";

DateTime dateTime = DateTime.ParseExact(dateString, format, CultureInfo.InvariantCulture);

string strNewDate = dateTime.ToString("yyyy-dd-mm");

score:0

var date = Convert.ToDateTime(DropDownListDate.SelectedValue);
var selectedDate = from d in datacontext.Appointment
                   where d.AppointmentDate == date
                   select d;

Related Query

More Query from same tag