﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Odd Date Behavior...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 21 Sep 2026 06:06:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Odd Date Behavior...</title><link>http://forum.strataframe.net/FindPost9093.aspx</link><description>I used to use #1/1/1800# as my null date replacement. I've since removed this from the BO Mapper and rebuilt all my BOs. However when I create a new record through my form 1/1/1900 still pops up... any idea why?</description><pubDate>Thu, 16 Aug 2007 16:35:21 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Odd Date Behavior...</title><link>http://forum.strataframe.net/FindPost10912.aspx</link><description>Actually I did not know you were waiting on me.&amp;nbsp; I thought you were going to look into the dates on your side.&amp;nbsp; This should not have anything to do with SF, but if you can give me a sample that reproduces the behavior I will look at it.&amp;nbsp; I am curious. :)</description><pubDate>Thu, 16 Aug 2007 16:35:21 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Odd Date Behavior...</title><link>http://forum.strataframe.net/FindPost10907.aspx</link><description>Any progress on this? :cool:</description><pubDate>Thu, 16 Aug 2007 16:05:09 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Odd Date Behavior...</title><link>http://forum.strataframe.net/FindPost10694.aspx</link><description>I agree that if you solve the mystery of 1/1/1800, 1/1/1900 will solve itself.&lt;/P&gt;&lt;P&gt;Here are a couple of links that may or may not help. I havent had too much time to study it, but it sounds like it may be a SQL Server issue.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.codescene.com/2006/01/party_like_its_111900_or_how_t.php"&gt;http://www.codescene.com/2006/01/party_like_its_111900_or_how_t.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.dotnet247.com/247reference/msgs/15/79000.aspx"&gt;http://www.dotnet247.com/247reference/msgs/15/79000.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I appreciate all the help. ;-)</description><pubDate>Thu, 02 Aug 2007 13:06:05 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Odd Date Behavior...</title><link>http://forum.strataframe.net/FindPost10687.aspx</link><description>[quote]I'm &lt;B&gt;stumped&lt;/B&gt;. [/quote]&lt;/P&gt;&lt;P&gt;Me too :)&amp;nbsp; We do not use 1/1/1900 as a default anywhere.&amp;nbsp; But I believe, so don't be discouraged :)&amp;nbsp; .... however :errm: I cannot reproduce your behavior.&amp;nbsp; I just followed your steps from above and when I create a new row, it appears as 1/1/1800.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/32685686-bcf9-424c-9c15-3dba.png"&gt;&lt;/P&gt;&lt;P&gt;I think that is the first mystery that we need to resolve.&amp;nbsp; I think that if we clear that up then the rest is downhill.&amp;nbsp; :)</description><pubDate>Thu, 02 Aug 2007 10:02:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Odd Date Behavior...</title><link>http://forum.strataframe.net/FindPost10669.aspx</link><description>Ok, so I'm still trying to figure this one out. Here's what I did. &lt;br&gt;
&lt;br&gt;
I created a new table in SQL Server with just one field. A smalldatetime field set to Allow Nulls but no default value.&lt;br&gt;
&lt;br&gt;
I created a new StrataFrame project and a new project inside the BO Mapper. I created a new BO and bound it to the new table I created. No customizations on the field.&lt;br&gt;
&lt;br&gt;
I dropped the new BO on the form and a BBS. I bound a native DatagridView to the BBS which was bound to the BO. I created only one fill method :&lt;br&gt;
&lt;br&gt;
   Public Sub Fill()&lt;br&gt;
      Try&lt;br&gt;
         Me.FillDataTable("SELECT * FROM Table_1")&lt;br&gt;
&lt;br&gt;
      Catch ex As Exception&lt;br&gt;
&lt;br&gt;
      End Try&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
And yet when I add a new record using the grid there is still a default value of 1/1/1900 inserted. I have no idea where it comes from.&lt;br&gt;
&lt;br&gt;
On the other hand I created a pure .NET app using native .NET data sources and when I added a record it didnt insert 1/1/1900. I'm &lt;b&gt;stumped&lt;/b&gt;. I'm including a screenshot of my native .NET app in case you have questions about how I setup this project.</description><pubDate>Thu, 02 Aug 2007 08:27:21 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Odd Date Behavior...</title><link>http://forum.strataframe.net/FindPost9097.aspx</link><description>It is possible that the date that was previously serialized within the forms designer for the date time picker.&amp;nbsp; If you select the control within the form designer, what is the date set to?</description><pubDate>Fri, 25 May 2007 23:16:54 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>