' ASP Determine Morning or Afternoon
<%
dim intHourOfDay
intHourOfDay = hour(now())
if intHourOfDay < 12 then
Response.Write("Good Morning World!<br><br>The hour of the day is ") & intHourOfDay
else
Response.Write("Good Afternoon World!<br><br>The hour of the day is ") & intHourOfDay
end if
%>
2 comments:
This is very easy and basic program. This post gives you a simple script to determine morning or afternoon. I don't think anyone have any difficulty with this script. Just copy it and execute the script. The logic is very simple.
javascript code examples
Post a Comment