Avatar of freezilla
freezilla

asked on 

VB/Classic ASP Timed Event

I'm at my last day of my job but yet I still care about it!  I need to have a chunk of code that "removes" line of code at a certain time and date.  I have this (below) but I need to incorporate the hours into it.

Ideas?

<% if Date() < "05/25/2012" then %>
Display this before May 25 @ 5:00 PM
<% else %>
Display this after May 25 @ 5:00 PM
<% end if %>
VB ScriptASP

Avatar of undefined
Last Comment
hielo
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

<% if date() < "05/25/2012"  and  hour(now()) < 17 then %>
Display this before May 25 @ 5:00 PM
<% else %>
Display this after May 25 @ 5:00 PM
<% end if %>
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Actually, you need hashtags in your date

<% if date() < #05/25/2012#  and  hour(now()) < 17 then %>
Display this before May 25 @ 5:00 PM
<% else %>
Display this after May 25 @ 5:00 PM
<% end if %>
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASP
ASP

Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.

82K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo