|
 |
asp_web_howto thread: how to format the time
Message #1 by "Chris Yangouyian" <Chris@m...> on Fri, 13 Apr 2001 13:51:27 -0400
|
|
I would like to write a procedure that writes something based on the time. For example: if the time is
between 1pm and 2pm response.write "Something"
if time is between 3pm and 4pm response.write "Something Else". I'm not sure how to format the time. Does it have to be military
time? Is it in " " like text or # # dates?
any help would be greatly appreciated!!
--
Regards,
Chris
--
Message #2 by "Walter Franssen" <walter@w...> on Fri, 13 Apr 2001 19:33:59
|
|
Try this:
If Day(now()) = 1 then
Response.Write ("it's 1 hour")
ElseIf Day(now()) = 2 then
Message #3 by "O'Hara, Elliott M" <EMOHARA@k...> on Fri, 13 Apr 2001 14:13:03 -0400
|
|
Mytime = hour(now)
Will get you an int between 0 and 23
Do with it whacha like
End select
-----Original Message-----
From: Chris Yangouyian [mailto:Chris@m...]
Sent: Friday, April 13, 2001 1:51 PM
To: ASP Web HowTo
Subject: [asp_web_howto] how to format the time
I would like to write a procedure that writes something based on the time.
For example: if the time is between 1pm and 2pm response.write "Something"
if time is between 3pm and 4pm response.write "Something Else". I'm not
sure how to format the time. Does it have to be military time? Is it in "
" like text or # # dates?
any help would be greatly appreciated!!
--
Regards,
Chris
--
|
|
 |