Print Page | Close Window

CDate error still happening

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=7956
Printed Date: 06 April 2026 at 10:58pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CDate error still happening
Posted By: skacorechris
Subject: CDate error still happening
Date Posted: 09 December 2003 at 5:50am
Hi,

I was getting the CDate error as described in the documentation when I uploaded my forum to my webspace. I followed instructions for setting the LCID in the common.asp file, which didn't solve the problem, and neither has the creation of a global.asa file. I have been deleting cookies on each attempt, but still to no avail.

Quote
Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CDate'

/ahchrist/forum/default.asp, line 154


The forum's address is http://www.adriangreenwood.co.uk/ahchrist/forum - www.adriangreenwood.co.uk/ahchrist/forum if that's of any use to you.

I'm using the latest release of the forum. Any ideas what could still be wrong?

Thanks



Replies:
Posted By: madolik
Date Posted: 09 December 2003 at 6:50am

I had the same kind of problems.

 



Posted By: Badaboem
Date Posted: 09 December 2003 at 7:21am

it may be that you installed a different language os on your pc. I have US windows 2003 server and use lcid 1043 although I'm located in the netherlands.



Posted By: skacorechris
Date Posted: 10 December 2003 at 4:56pm
i do have a different time setting on my PC, which could cause the problem. but i have set the LCID to various settings to try and fix the problem and it hasn't worked. I'm going to try overwriting the database with the blank one that came with it to see if that fixes it.


Posted By: skacorechris
Date Posted: 12 December 2003 at 12:22pm
hmm, that still doesn't seem to help...any ideas?


Posted By: Badaboem
Date Posted: 15 December 2003 at 5:10pm
Each time you change your lcid code you have to clear your cookies.


Posted By: shem
Date Posted: 21 December 2003 at 8:10pm

On install got the same problem in UK host in Germany (+1 hours) 2003 shared server. Did all the Locale stuff and problem persisted perhaps host hasn't got locale installed, anyway ...

Tracked the cookie and noted that the LTVST was being recorded with a , not . I thought this was probably due to a server/database/locale setup, but just wanted to find a solution so checked recording a straight numeric date in the form 12345.123456789 in the cookie and found the . replaced by a comma when read straight out quite bizarre and probably not a locale issue.

This might not be complete fix as I haven't finished testing and it's not elegant but replaced in the following files common.asp, default.asp, active_topics.asp some code as follows.

Replace

isNumeric(Request.Cookies(strCookieName)("LTVST"))

with

isNumeric(Left(Request.Cookies(strCookieName)("LTVST"),5) & "." & Right(Request.Cookies(strCookieName)("LTVST"),9))

and

CDate(Request.Cookies(strCookieName)("LTVST"))

with

CDate(Left(Request.Cookies(strCookieName)("LTVST"),5) & "." & Right(Request.Cookies(strCookieName)("LTVST"),9))

If those who have the problem with cdate and the cookie issue and find anything else to change or if this solves your problem let us know.



Posted By: TT-Fan
Date Posted: 22 December 2003 at 4:02am

I also had a lot of problems after changing CDATE.

But now it all works, my Problem was that my Provider Company hade there Server in another country!! Perhaps you have the same Problems?




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net