判断上下午
[ 2006-12-06 17:54:36 | 作者: admin ]
<%
if CInt(Left(FormatDatetime(now(),vbShortTime),2))>12 then
response.write "下午"
else
response.write "上午"
end if
%>
if CInt(Left(FormatDatetime(now(),vbShortTime),2))>12 then
response.write "下午"
else
response.write "上午"
end if
%>
<%
If Time >= #12:00:00 AM# And Time < #12:00:00 PM# Then
response.write "上午"
Else
response.write "下午"
End If
%>
If Time >= #12:00:00 AM# And Time < #12:00:00 PM# Then
response.write "上午"
Else
response.write "下午"
End If
%>
[最后修改由 admin, 于 2006-12-06 17:57:20]
评论Feed: http://blog.xg98.com/feed.asp?q=comment&id=767
这篇日志没有评论。
此日志不可发表评论。