网站后台出现错误提示

来源:百度知道 编辑:UC知道 时间:2024/05/30 17:40:09
网页可以正常浏览,但是进入后台管理的产品页面,有一个产品的加入时间栏显示:”Microsoft VBScript 运行时错误 错误 '800a0005'

无效的过程调用或参数: 'FormatDateTime'

/manage/ArticleManage.asp,行 303

我看一下/manage/ArticleManage.asp,行 303的内容是:” <td width="68" align="center" bgcolor="#E3E3E3"><%= FormatDateTime(rs("UpdateTime"),2) %></td>”.不知道是不是有问题,该怎么解决?谢谢!

FormatDateTime这个:
= FormatDateTime(rs("UpdateTime"),2) %>〕
rs("UpdateTime")这个你看有没有空的,如果是空就会出现这个
formatDateTime()

函数返回表达式,此表达式已被格式化为日期或时间

表达式 formatDateTime(Date, [, Namedformat])

允许数据类型: Namedformat 指示所使用的日期/时间格式的数值,如果省略,则使用 vbGeneralDate.

实例: <%=formatDateTime("09/9/00", vbLongDate)%>

返回结果: Sunday, September 09, 2000

你到数据库看看这个产品的UpdateTime这个字段,肯定是不正常的时间格式