Wednesday, April 7, 2010

ASP VB Script - Determine Morning or Afternoon

' 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:

sap upgrade project said...

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.

YouLoseBellyFat said...

javascript code examples

Post a Comment

 
Powered by Blogger