Convert.ToDateTime("9/2/2009 5:18:32 PM").ToString("yyyy-MM-dd HH:mm:ss")先把日期字符串转化为日期格式,则可用ToString("yyyy-MM-dd HH:mm:ss")随意指定你想要的效果。 相关文章: