Comparing Times

Results 1 to 2 of 2

Thread: Comparing Times

  1. #1
    tcrawford Guest

    Default Comparing Times

    Hello ASP Wizards, can I compare times in an IF statement like this:<BR><BR>If Application ("tm2close") &#060; NOW Then<BR> Response.Write ("&#060;img src=&#039images/closed.jpg&#039&#062; <BR>")<BR>End If<BR><BR><BR>I am collecting 2 times. If between tm2close and tm2open I want to display closed.jpg, otherwise I want to display open.jpg. Sounds simple, but I&#039m even simpler.<BR><BR>Thanks in advance for your help!

  2. #2
    BalletChick Guest

    Default RE: Comparing Times

    Use the DateDiff function to determine the difference in NOW and the variable.

Posting Permissions

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