Comparison of dates

Results 1 to 2 of 2

Thread: Comparison of dates

  1. #1
    Join Date
    Dec 1969

    Default Comparison of dates

    Can anyone explain why this does not work:<BR><BR>&#060;% <BR>dim mydate<BR>mydate = "13/3/01"<BR>if mydate = date() then<BR>response.write("Today")<BR>end if<BR>%&#062;<BR><BR>It does not seem to be able to understand date(.<BR><BR>Thank-you<BR><BR>Billy)

  2. #2
    Join Date
    Dec 1969

    Default RE: Comparison of dates

    Date() is a correct vb function.<BR><BR>Maybe it is not possible to compare a string to a date: try this:<BR>If cDate(mydate) = Date() Then<BR> ...<BR>End If<BR><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