Posted on: 7/3/2015 12:23:45 PM | Views : 1226

Hi,
I have the following code, where I read through a datatable if the date matches.
DateTime myJoinDate = Convert.ToDateTime(DistinctRow["join_date"].ToString()); DataRow[] result = dtData.Select(String.Format("join_date='{0}'", myJoinDate)); foreach (DataRow row in result) { row["name"] = myName; } However, because it was built from a MySQL table, I get the following error:
{"Cannot perform '=' operation on MySql.Data.Types.MySqlDateTime and System.String."} How would I resolve? Thanks

Go to the complete details ...