<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : CDate error in some posts</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : CDate error in some posts]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 08 Apr 2026 16:12:29 +0000</pubDate>
  <lastBuildDate>Sun, 04 Jul 2004 21:12:04 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=10650</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[CDate error in some posts :    Gargaleo wrote:  &amp;#039;If...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post61056.html#61056</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=8513">Phat</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 04&nbsp;July&nbsp;2004 at 9:12pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Gargaleo" alt="Originally posted by Gargaleo" style="vertical-align: text-bottom;" /> <strong>Gargaleo wrote:</strong><br /><br /><p><table width="99%"><tr><td><pre class="BBcode"></p><br><p>&nbsp;&nbsp;'If it is a date then read convert it to a date otherwise set the variable to 0<br>&nbsp;&nbsp;If isNumeric(dtmEditedDate) Then dtmEditedDate = CDate(dtmEditedDate) </p><p></pre></td></tr></table></p></td></tr></table><br><br>You could try changing above to <br>If <span style="color: rgb(255, 0, 0);">isDate</span>(dtmEditedDate) Then dtmEditedDate = CDate(dtmEditedDate)<br><br>or <br><br>If <span style="color: rgb(255, 0, 0);">isDate</span>(dtmEditedDate) Then dtmEditedDate = <span style="color: rgb(255, 0, 0);">FormatDateTime(dtmEditedDate,0)</span><br>]]>
   </description>
   <pubDate>Sun, 04 Jul 2004 21:12:04 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post61056.html#61056</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts : I got the same error after chamging...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post61037.html#61037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=16213">Gargaleo</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 04&nbsp;July&nbsp;2004 at 4:30am<br /><br /><P>I got the same error after chamging the host of the forum!<BR>As i see nobody here had a solution for this problem i opened "functions_format_post" and changed it a little and resolved the problem. infortunatelly when someone edit a post, it cant tell anymore the date and time it was edited but still says who did it.</P><P>Here is the code, all you have to do is coment the lines where inserts the date and time.<BR>Im a asp noob, another solution is welcome.<BR>Sorry for the awful english</P><P><table width="99%"><tr><td><pre class="BBcode"></P><P>'******************************************<BR>'***&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Display edit author&nbsp;&nbsp;***<BR>'******************************************</P><P><BR>'This function formats XML into the name of the author and edit date and time if a message has </P><P>been edited<BR>'XML is used so that the date can be stored as a double npresion number so that it can display </P><P>the local edit time to the message reader<BR>Function editedXMLParser(ByVal strMessage)</P><P>&nbsp;&nbsp;'Declare variables<BR>&nbsp;&nbsp;Dim strEditedAuthor &nbsp;'Holds the name of the author who is editing the </P><P>post<BR>&nbsp;&nbsp;Dim dtmEditedDate&nbsp;&nbsp; &nbsp;'Holds the date the post was edited<BR>&nbsp;&nbsp;Dim lngStartPos&nbsp;&nbsp;'Holds search start postions<BR>&nbsp;&nbsp;Dim lngEndPos&nbsp;&nbsp;'Holds end start postions</P><P><BR>&nbsp;&nbsp;'Get the start and end in the message of the author who edit the post<BR>&nbsp;&nbsp;lngStartPos = InStr(1, strMessage, "&lt;editID&gt;", 1) + 8<BR>&nbsp;&nbsp;lngEndPos = InStr(1, strMessage, "&lt;/editID&gt;", 1)<BR>&nbsp;&nbsp;If lngEndPos &lt; lngStartPos Then lngEndPos = lngStartPos<BR>&nbsp;&nbsp;</P><P>&nbsp;&nbsp;'If there is something returned get the authors name<BR>&nbsp;&nbsp;strEditedAuthor = Trim(Mid(strMessage, lngStartPos, </P><P>lngEndPos-lngStartPos))</P><P>&nbsp;<strong>&nbsp;'Get the start and end in the message of the date the message was edited<BR>&nbsp;&nbsp;'lngStartPos = InStr(1, strMessage, "&lt;editDate&gt;", 1) + 10<BR>&nbsp;&nbsp;'lngEndPos = InStr(1, strMessage, "&lt;/editDate&gt;", 1)<BR>&nbsp;&nbsp;'If lngEndPos &lt; lngStartPos Then lngEndPos = lngStartPos</P><P>&nbsp;&nbsp;'If there is something returned get the date the message was edited<BR>&nbsp;&nbsp;'dtmEditedDate = Trim(Mid(strMessage, lngStartPos, </P><P>lngEndPos-lngStartPos))</strong></P><P>&nbsp;&nbsp;'If it is a date then read convert it to a date otherwise set the variable to 0<BR>&nbsp;&nbsp;If isNumeric(dtmEditedDate) Then dtmEditedDate = CDate(dtmEditedDate) </P><P>Else dtmEditedDate = 0</P><P><BR>&nbsp;&nbsp;'Get the start and end position in the string of the XML to remove<BR>&nbsp;&nbsp;lngStartPos = InStr(1, strMessage, "&lt;edited&gt;", 1)<BR>&nbsp;&nbsp;lngEndPos = InStr(1, strMessage, "&lt;/edited&gt;", 1) + 9<BR>&nbsp;&nbsp;If lngEndPos &lt; lngStartPos Then lngEndPos = lngStartPos</P><P>&nbsp;&nbsp;'If there is something returned strip the XML from the message<BR>&nbsp;&nbsp;strMessage = Replace(strMessage, Trim(Mid(strMessage, lngStartPos, </P><P>lngEndPos-lngStartPos)), "", 1, -1, 1)</P><P><BR>&nbsp;&nbsp;'Place the date and time into the message for when the post was edited<BR>&nbsp;<strong>&nbsp;If strEditedAuthor &lt;&gt; "" Then<BR>&nbsp;&nbsp;&nbsp;editedXMLParser = strMessage &amp; "&lt;span class=""smText""&gt;&lt;br </P><P>/&gt;&lt;br /&gt;" &amp; strTxtEditBy &amp; " " &amp; strEditedAuthor &amp; " &lt;/span&gt;"<BR>&nbsp;&nbsp;End If</strong><BR>End Function</P><P></pre></td></tr></table></P>]]>
   </description>
   <pubDate>Sun, 04 Jul 2004 04:30:09 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post61037.html#61037</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts : have you set a location id in...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58442.html#58442</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=12292">Semikolon</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 30&nbsp;May&nbsp;2004 at 3:03pm<br /><br />have you set a location id in common.asp? if not, try setting Session.LCID]]>
   </description>
   <pubDate>Sun, 30 May 2004 15:03:21 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58442.html#58442</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts : Yes, and ive just updated to 7.8,...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58435.html#58435</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=16159">TheHawk</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 30&nbsp;May&nbsp;2004 at 11:54am<br /><br /><P>Yes, and ive just updated to 7.8, and i know the thing about the database, i just used the word "imported" because of lack of other words to express what i ment. Sorry for the misunderstanding...</P><P>But anyways i still got that damn error, but well if there isent any way of fixing it, i just have to leave those posts alone or just delete them.</P><P>But if you come up with a way of fixing it, i would very happy.<BR>But thx for ur help anyways...</P>]]>
   </description>
   <pubDate>Sun, 30 May 2004 11:54:20 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58435.html#58435</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts : You should be running the latest...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58434.html#58434</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 30&nbsp;May&nbsp;2004 at 11:43am<br /><br />You should be running the latest version for a number of reasonsincluding security or your forum will be vunerable to hackers!!!<br><br>The Access 7.8 version will run with any version 7.x Access database,all you need to do is replace the files leaving the Access databasealone. (no importing required)<br>]]>
   </description>
   <pubDate>Sun, 30 May 2004 11:43:43 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58434.html#58434</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts : ok, but if i use the time settings...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58431.html#58431</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=16159">TheHawk</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 30&nbsp;May&nbsp;2004 at 10:55am<br /><br /><P>ok, but if i use the time settings from the old server. And they dont macth the ones on the new server, wont i get the CDate error in general then?</P><P>And im running 7.6, but ive tried downloading 7.8 and importing the old database into that one, but that dosent work either :(</P>]]>
   </description>
   <pubDate>Sun, 30 May 2004 10:55:41 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58431.html#58431</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts :  The only solution left is to...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58430.html#58430</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 30&nbsp;May&nbsp;2004 at 10:37am<br /><br />The only solution left is to change the server so that the locale andtime and date settings match that of your old server or try anotherhost.<br><br>If you are running an older version try updating to the latest versionas some changes where made to how topics where edited around lastChristmas.<br><span style="font-size:10px"><br /><br />Edited by -boRg-</span>]]>
   </description>
   <pubDate>Sun, 30 May 2004 10:37:35 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58430.html#58430</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts : Ive tried turning the &amp;#034;display...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58426.html#58426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=16159">TheHawk</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 30&nbsp;May&nbsp;2004 at 10:20am<br /><br /><P>Ive tried turning the "display edited" fuction off...</P><P>But the error still occurs...</P><P>Do you have any other ideas?</P>]]>
   </description>
   <pubDate>Sun, 30 May 2004 10:20:09 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58426.html#58426</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts : Looks like the server you have...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58417.html#58417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 30&nbsp;May&nbsp;2004 at 8:03am<br /><br />Looks like the server you have moved to is using a different time date setting and so is coursing this problem.<br><br>Your only solution is to turn off the feature in the admin area that displays who and when a post was edited.<br>]]>
   </description>
   <pubDate>Sun, 30 May 2004 08:03:45 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58417.html#58417</guid>
  </item> 
  <item>
   <title><![CDATA[CDate error in some posts : Hey i have just moved my forum...]]></title>
   <link>https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58270.html#58270</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=16159">TheHawk</a><br /><strong>Subject:</strong> 10650<br /><strong>Posted:</strong> 28&nbsp;May&nbsp;2004 at 11:35am<br /><br /><P>Hey i have just moved my forum to another server.</P><P>And now ive started getting this error in some of my posts:</P><P>Microsoft VBScript runtime <FONT face=Arial size=2>error '800a000d'</FONT><FONT face="Times New Roman" size=3> </FONT></P><P><FONT face=Arial size=2>Type mismatch: 'CDate'</FONT> <P><FONT face=Arial size=2>/forum/forum/functions/functions_format_post.asp</FONT><FONT face=Arial size=2>, line 839</FONT> </P><P>But i realy cant figure out why... because the servere dident chance country or anything, and therefore no LCID change either.</P><P>As far as i can see, there posts/toppics showing this error is the topics where a posts have been edited, and as i can see the error is refering to the place in the code where the code checks the edit date in the post.</P><P>Does anyone know anyway of fixing this problem, i realy dont want to loose all the contents on my forum...</P>]]>
   </description>
   <pubDate>Fri, 28 May 2004 11:35:26 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/cdate-error-in-some-posts_topic10650_post58270.html#58270</guid>
  </item> 
 </channel>
</rss>