string tdate=gv.rows[i].cell[m].value.tostring;
if(!string.isnullempty(tdate)){
try{
//强制转换
datetime dt = new date(tdate);
messagebox.show("输入正确")
return;
}
catch(Exption ex)
{
messagebox.show("输入错误");
return;
}
}
else
{
messagebox.show("未输入日期");
return;
}