sql server 2008查询时报错:从字符串转换日期和⼀或时间时,转换失败。脚本如下

2025-06-26 23:29:31
推荐回答(1个)
回答1:

starttime.ToShortDateString()试试这个函数strattime是datetime类型的变量