字符串转为日期类型

string dtString="2008-08-19";DateTime dt=Convert.ToDateTime(dtString);

 

posted @ 2012-12-15 17:52  麦田HH  阅读(136)  评论(0编辑  收藏  举报