public object GetDate() { try { if (TXT_DD.Text.Trim() != "" && DDL_MM.SelectedIndex > 0 && TXT_YY.Text.Trim() != "") { return(MyPage.ToDateTime(TXT_DD, DDL_MM, TXT_YY)); } else { return(null); } } catch { return(null); } }