摘要:
方法一:Convert.ToDateTime(string) string格式有要求,必须是yyyy-MM-dd hh:mm:ss 方法二:Convert.ToDateTime(string, IFormatProvider) using System; using System.Globaliza 阅读全文
posted @ 2019-02-28 20:05
PowerCoder
阅读(28647)
评论(0)
推荐(0)
摘要:
一般存入数据库中的时间格式为yyyy-mm-dd hh:mm:ss 如果要转换为yyyy-mm-dd 短日期格式.可以使用convert函数.下面是sqlserver帮助中关于convert函数的声明: 使用 CONVERT:CONVERT (data_type[(length)],expressi 阅读全文
posted @ 2019-02-28 19:54
PowerCoder
阅读(2459)
评论(0)
推荐(0)
浙公网安备 33010602011771号