Detecting if a date has passed.

Results 1 to 2 of 2

Thread: Detecting if a date has passed.

  1. #1
    Join Date
    Dec 1969

    Default Detecting if a date has passed.

    I am having a big big problem with a website I am working trying to detect if a date that a user enters has already passed.. i.e. check it against the current date.<BR><BR>I am using &#060;% if Request("dateentered") &#060; Date() then do something end if %&#062;<BR><BR>I have tried formatting into numerous formats i.e LongDate tried it with hashes around the string etc etc.. But it is still getting it wrong.. It&#039;s as if it&#039;s only checking the day part of the date...<BR><BR>Am I doing something wrong??<BR><BR>Any help gratefully received...<BR><BR>

  2. #2
    Join Date
    Dec 1969
    Indianapolis, IN

    Default Try Cdate(Request("dateentered")) <eop>


Posting Permissions

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