<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>IIS7 - Classic ASP</title><link>http://forums.iis.net/1044.aspx</link><description>Forum discussing usage of Classic ASP applications on the IIS 7 platform</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: AddNew() date problem</title><link>http://forums.iis.net/thread/1921960.aspx</link><pubDate>Fri, 23 Oct 2009 21:20:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921960</guid><dc:creator>DanOrc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1921960.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1044&amp;PostID=1921960</wfw:commentRss><description>&lt;p&gt;I know what I have to do...but in an application with over 2500 asp pages it&amp;#39;s too late. &lt;/p&gt;
&lt;p&gt;But this is not happening in IIS 4,5,6...&lt;/p&gt;</description></item><item><title>Re: AddNew() date problem</title><link>http://forums.iis.net/thread/1921946.aspx</link><pubDate>Fri, 23 Oct 2009 20:16:46 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921946</guid><dc:creator>CarlosAg</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1921946.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1044&amp;PostID=1921946</wfw:commentRss><description>&lt;p&gt;The best thing you can do is if your data type in SQL is a date you should send a Date and not let some layer do the transformation from string to date since that can easily be impacted by locale of the servers, thread, api&amp;#39;s, sql settings and many other factors that are not really bugs but just the right behavior.&lt;/p&gt;
&lt;p&gt;Could you maybe use something like &lt;/p&gt;
&lt;p&gt;RS(&amp;quot;data&amp;quot;)= DateSerial(2009, month, day) &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: AddNew() date problem</title><link>http://forums.iis.net/thread/1921937.aspx</link><pubDate>Fri, 23 Oct 2009 19:21:59 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921937</guid><dc:creator>DanOrc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1921937.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1044&amp;PostID=1921937</wfw:commentRss><description>&lt;p&gt;Hello, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks so much for answer, I did put a Cdate() but this didnt solves the problem. I still have this big big problem. If you can suggest anything else I would appreciate. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;If I could somehow send you a 1 simple page application to demonstrate the behaviour maybe you will be able to submit&amp;nbsp; a bug to the testers/developers team...&lt;/p&gt;
&lt;p&gt;Thank you very much. &lt;/p&gt;</description></item><item><title>Re: AddNew() date problem</title><link>http://forums.iis.net/thread/1907595.aspx</link><pubDate>Thu, 18 Jun 2009 23:49:53 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907595</guid><dc:creator>steve schofield</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1907595.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1044&amp;PostID=1907595</wfw:commentRss><description>&lt;p&gt;This is a datatype issue between ADO and SQL Server.&amp;nbsp; I&amp;#39;d try putting CDATE function around the date &amp;#39;data&amp;#39;.&amp;nbsp;&amp;nbsp;&amp;nbsp; Probably a newer version of ole-db causing the odd behavior.&amp;nbsp; What do you see in sql profiler when the data is attempting to be written?&lt;/p&gt;</description></item><item><title>AddNew() date problem</title><link>http://forums.iis.net/thread/1907327.aspx</link><pubDate>Wed, 17 Jun 2009 09:17:25 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1907327</guid><dc:creator>DanOrc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1907327.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1044&amp;PostID=1907327</wfw:commentRss><description>&lt;p&gt;hello, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;i have an app that was developed with classic ASP(VBScript). my regional language and settings is Romanian. i&amp;#39;ve copied the local settings to reserved accounts. the database is SQL 2000. &lt;/p&gt;
&lt;p&gt;when i write this: &lt;/p&gt;
&lt;p&gt;&amp;quot;insert into import_curs (data, valoare) select &amp;#39;06/09/2009&amp;#39;, 1571.23 &amp;quot; it&amp;#39;s ok. the month is 6, day 9. &lt;/p&gt;
&lt;p&gt;but when i write this: &lt;/p&gt;
&lt;p&gt;RS.Open &amp;quot;import_curs&amp;quot;,Conn,3,3&lt;br /&gt;&amp;nbsp;RS.AddNew()&lt;br /&gt;&amp;nbsp;&amp;nbsp;RS(&amp;quot;data&amp;quot;)=&amp;quot;06/09/2009&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;RS(&amp;quot;valoare&amp;quot;) = 1571.23&lt;br /&gt;&amp;nbsp;RS.UpdateBatch(adAffectAll)&lt;br /&gt;&amp;nbsp;RS.Close&lt;/p&gt;
&lt;p&gt;the month is 9 and the day is 6. i really dont know what and where to change this behavior. i have to mention that this is working well in IIS 5.1, IIS 6. &lt;/p&gt;
&lt;p&gt;thank you in advance. &lt;/p&gt;</description></item></channel></rss>