Dim thistime As DateTime = Date.Now.ToUniversalTime
Dim todaystr As String = thistime.Year.ToString + "-" + thistime.Month.ToString + "-" + thistime.Day.ToString
dtProgrammeTitle = _brProduct.fnFetchProgrammeTitle(0, 0.0, todaystr)
今天发现一个非常奇怪的 问题 Date.Now.ToUniversalTime.ToShortDateString 在我本机上 转换 出来的 字符串 是 "2008-12-15"
等我上传到 WEB服务器上以后 就变成 "15/12/2008" 后者 直接在SQL 里面查询会 导致 错误 。 这个 时间字符串转换 真是 陷阱 重重 (WEB服务器 为 英文版 win server2003)