if (Convert.ToBoolean(Request.QueryString["searchEngineID"]) && (Convert.ToDateTime(Request.QueryString["calStartDate"]) < Convert.ToDateTime(Request.QueryString["calEndDate"])))
The problem I am having though is that if calStartDate or calEndDate is null or calStartDate > calStartDate the if statement needs to be false to move onto the next elseif. The program is crashing when it tries to convert the null to datetime. any workarounds for this?
The problem I am having though is that if calStartDate or calEndDate is null or calStartDate > calStartDate the if statement needs to be false to move onto the next elseif. The program is crashing when it tries to convert the null to datetime. any workarounds for this?