DateTime dt = 你的值;
string str = 你的值
string condition1 = "'"+str+"'";
string condition2 = "#"+dt+"#";