帮忙解决ASP公告栏日期时间显示的问题
在前两天求帮忙修改ASP源码的贴中,谢谢xmlz、ysf0181两位师傅的大力支持和帮助。目前公告栏里是可以显示出日期和时间,现想再次恳请大师们帮忙解决显示日期时间的问题。目前显示的日期时间格式是:2012-7-31 11:03:45,本人想把时间显示改为显示到时和分就可以(也就是说不显示出秒,显示的结果:2012-7-31 11:03)。
由于本人没有这方面的知识,跪求大师们帮忙。谢谢!
附:公告栏源码
<table width="232" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="568" align="center" valign="top">
<div class="right_border">
<table width="220" height="117" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="53" height="26" align="center" background="images/echsys_index_24.gif"><img src="Images/t_d.gif" width="12" height="11" /></td>
<td width="83" height="26" background="images/echsys_index_24.gif" class="white_title">公告通知</td>
<td width="84" align="right" background="images/echsys_index_24.gif" class="white_title"><a href="E_board.asp" target="_blank"><img src="Images/more_bai.gif" width="60" height="20" border="0" /></a></td>
</tr>
<tr>
<td colspan="3" align="center" bgcolor="#FFFFFF">
<div id="demoa" style="OVERFLOW: hidden; WIDTH: 190px; HEIGHT: 170px">
<div id="demoa1">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
Set Rsb=Conn.Execute("select top 10 * from "& db_EC_Board_Table&" order by dateandtime desc")
if Rsb.Bof and Rsb.Eof then
Response.Write "<tr><td align=center>暂无公告</td></tr>"
Else
Do While Not Rsb.Eof
%>
<tr>
<td height="18" align="left" class="blacklink"><div class="side_con"> ·<a href="E_Board_News.asp?ID=<%=rsb("ID")%>" class="middle" target="_blank"> <%=CutStr(htmlencode4(Rsb("title")),24)%><%=rsb("dateandtime")%></a></div></td>
</tr>
<%
Rsb.Movenext
Loop
End If
Rsb.Close
Set Rsb=Nothing
%>
</table>
</div>
<div id="demoa2"></div>
</div>
</td>
</tr>
</table>
</div>
<div class="right_border">
</div>
<div class="right_border">
</div>
<div class="right_border">
</div>
<div class="right_border">
</div>
</td>
</tr>
</table>
[ 本帖最后由 zpfycms 于 2012-7-31 15:06 编辑 ]