怎么以12:00为间隔,判断一个DATE类型字段为上午还是下午???

imwinner 2004-11-24 09:07:43
RT
...全文
199 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
rapidoit 2004-11-24
  • 打赏
  • 举报
回复
<%
If Time >= #12:00:00 AM# And Time < #12:00:00 PM# Then
Greeting = "Good Morning!"
Else
Greeting = "Hello!"
End If
%>
ygjwjj 2004-11-24
  • 打赏
  • 举报
回复
if cint(left(formatdatetime(mydate,vbShortTime),2))>12 then
response.write "下午"
else
response.wrtie "上午"
end if
ygjwjj 2004-11-24
  • 打赏
  • 举报
回复
if cint(left(formatdatetime(mydate,vbShortTime),2))>12 then
response.write "上午"
else
response.wrtie "下午"
end if

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧