formatdatetime
函数。,,``vbscript,dim rs, dt,set rs = server.createobject("adodb.recordset"),rs.open "select datetime_column from your_table", conn,if not rs.eof then, dt = rs("datetime_column"), response.write formatdatetime(dt, 4) ' 输出格式为 时:分:秒,end if,rs.close,set rs = nothing,
``,,这段代码将从数据库中读取日期时间字段,并以"时:分:秒"的格式显示。