Print Page | Close Window

Type mismatch: ’CDate’ (Win2003)

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=12551
Printed Date: 11 April 2026 at 3:02pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Type mismatch: ’CDate’ (Win2003)
Posted By: fastfred
Subject: Type mismatch: ’CDate’ (Win2003)
Date Posted: 16 November 2004 at 2:17am

Hello,

Since my proivder switched to Windows 2003, i get on some topics this error notice:

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'CDate'
/forum/functions/functions_format_post.asp, line 839

See http://mtb-sport.sohosted.com/forum/forum_posts.asp?TID=3179&PN=1&TPN=2 - http://mtb-sport.sohosted.com/forum/forum_posts.asp?TID=3179 &PN=1&TPN=2

I am using version 7.9 and it's running with MsAcces



-------------
   



Replies:
Posted By: WebWiz-Bruce
Date Posted: 16 November 2004 at 7:51am
This means that your hosting provider has changed the locale settings for the server.

This is possiably a mistake they have made in not setting the locale correctly, ask them to look into the locale settings on the server to check that your server is set to the correct locale.

If this fails disable the option to show the edit time and date at the bottom of forum posts from the admin area.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: fastfred
Date Posted: 17 November 2004 at 1:36am

My provider (vevida.nl) checked the code and came with a "fix" in the code.

It's in file functions/functions_format_post.asp

In line with "If isNumeric(dtmEditedDate) Then dtmEditedDate = CDate(dtmEditedDate) Else dtmEditedDate = 0"  they changed IsNumeric to IsDate.

This after checking by  msdn.microsoft.com

In  http://mtb-sport.sohosted.com/forum/forum_posts.asp?TID=3179 &PN=1&TPN=2 - http://mtb-sport.sohosted.com/forum/forum_posts.asp?TID=3179 &PN=1&TPN=2  it is not modified

In http://mtb-sport.sohosted.com/forum79/forum_posts.asp?TID=3179&PN=1&TPN=2 - http://mtb-sport.sohosted.com/forum79/forum_posts.asp?TID=31 79&PN=1&TPN=2  it is modied.

Further i switched of the option edited because everyting gets a wrong date.



-------------
   


Posted By: astral
Date Posted: 18 November 2004 at 7:41am

just add this

session.lcid = 1033 'US-EN



Posted By: MichaelItaly
Date Posted: 18 November 2004 at 8:29am
Originally posted by astral astral wrote:

just add this

session.lcid = 1033 'US-EN



I have the same problem but this solution doesn't solve it, but it create another problem.
In my case the problem come from common.asp module, and I have understooden that the problem come from cookies, because if I delete all cookies the forum restart. The cdate function in common.asp has used to read the date of last visist in LTSVT cockie. Do someone known the solution?

Thanks. Bye



Posted By: WebWiz-Bruce
Date Posted: 18 November 2004 at 10:48am
Follow the instructions on how to set the correct LCID in the forum documentation.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: astral
Date Posted: 18 November 2004 at 4:50pm
Originally posted by MichaelItaly MichaelItaly wrote:

Originally posted by astral astral wrote:

just add this

session.lcid = 1033 'US-EN



I have the same problem but this solution doesn't solve it, but it create another problem.
In my case the problem come from common.asp module, and I have understooden that the problem come from cookies, because if I delete all cookies the forum restart. The cdate function in common.asp has used to read the date of last visist in LTSVT cockie. Do someone known the solution?

Thanks. Bye

actually my problem is almost same as yours. it is due to the server's locale setting problem... once u properly set the LCID, the problem should be solve...




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