public DateTime assignifcolnameexists(string _colname, RdbDataType b = RdbDataType.DateTime) { DateTime rv; string retval = ddtt.Columns.Contains(_colname) ? ddtt.Rows[currentExcelPatient][_colname] + "" : ""; if (retval.Length == 0) { autosettings.bHasDOB = false; } else autosettings.bHasDOB = true; rv = Convert.ToDateTime(retval); return rv; }
public DateTime assignifcolnameexists(string _colname, RdbDataType b = RdbDataType.DateTime) { DateTime rv; string retval = ddtt.Columns.Contains(_colname) ? ddtt.Rows[currentExcelPatient][_colname] + "" : ""; if (retval.Length == 0) { autosettings.bHasDOB = false; } else { autosettings.bHasDOB = true; } rv = Convert.ToDateTime(retval); return(rv); }