Comparing dates

Results 1 to 4 of 4

Thread: Comparing dates

  1. #1
    Sid Guest

    Default Comparing dates

    I am trying to compare the dates. If I compare like <BR><BR>if 2001/07/09 = 2001/7/9 then<BR>response.write "Equal"<BR>end if<BR><BR>The output was equal.<BR><BR>where as I assigned sDate = 2001/07/09 and EDate = 2001/7/9<BR><BR>if sDate= EDate then<BR>response.write "Equal"<BR>end if<BR><BR>in The above sDate is not equal to EDate. Why is this happening? What I am doing wrong?<BR><BR>Please help.<BR>Sid<BR><BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Use datediff

    if the result is 0 the they are equal

  3. #3
    Join Date
    Dec 1969

    Default Use CDate() function...


  4. #4
    Sid Guest

    Default RE: Use CDate() function...

    I used cdate() function. Both dates are still not equal.<BR><BR>Thanks<BR>Sid

Posting Permissions

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