CDate Error

Results 1 to 2 of 2

Thread: CDate Error

  1. #1
    Join Date
    Dec 1969

    Default CDate Error

    Hi All,<BR><BR>I am getting an error type mismatch date actually i am getting values from three drop downs its month,day,year but when i am converting date and using request.form its giving me error i am placing the error as well as code so could somebody look at it and sugguest me what to do.<BR><BR>Here is the error<BR>Microsoft VBScript runtime error &#039 800a000d&#039 <BR>Type mismatch: &#039CDate&#039 <BR><BR>And here&#039s the code<BR>str = CDate(request.form("a1")& "/" &request.form("a2") & "/" & request.form("a3"))<BR>Thankx & Regards<BR>Ashish

  2. #2
    Join Date
    Dec 1969

    Default RE: CDate Error

    What are the values of a1, a2 and a3? What is the value of the string that you are creating without the cdate function? Tear it apart and look at all of the pieces, I bet that there is a space or that the whole cocatenation isn&#039t a valid date for some reason. Try trimming the form values. Good luck

Posting Permissions

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