void SetCalendarExtenderValue() { try { string dateTime = txtDate.Text; ceDate.SelectedDate = DateTime.ParseExact(txtDate.Text, ceDate.Format, null); } catch { ceDate.SelectedDate = null; } } #endregion