Comparing Time

Results 1 to 3 of 3

Thread: Comparing Time

  1. #1
    Thomas Fuller Guest

    Default Comparing Time

    I&#039;m trying to create a asp conditional that will take the current time and if it&#039;s after 7:00 pm I want it to trigger off that conditional. My problem is finding a good way to do this. I could use any help you can offer. I figured out how to do this with the date but I&#039;m still having difficulty with the time due to the conversion into a comparable integer.<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Comparing Time

    myHour = Hour(now)<BR><BR>If myHour &#062; 6 Then<BR> do something

  3. #3
    Thomas Fuller Guest

    Default RE: Comparing Time

    I appreciate the help, the Hour() function is exactly what I needed. THanks<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts