﻿<?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 Database Deployment Toolkit » Issues  » GetDate() default value for datetime fields</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 08 Sep 2026 22:43:35 GMT</lastBuildDate><ttl>20</ttl><item><title>GetDate() default value for datetime fields</title><link>http://forum.strataframe.net/FindPost4914.aspx</link><description>Not sure where the root of this issue lies, but specifying GetDate() as the default value for a datetime field in DDT results in the 1/1/1800 value when deployed against SQL Server.&lt;/P&gt;&lt;P&gt;Not a big deal, but it would be convenient if it worked. Also an improvement would be to simply remove the option if it's not going to work so I quit trying it. :)&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Mon, 04 Dec 2006 13:49:37 GMT</pubDate><dc:creator>Chris Crabtree</dc:creator></item><item><title>RE: GetDate() default value for datetime fields</title><link>http://forum.strataframe.net/FindPost4929.aspx</link><description>The problem is that new records are specified with default values when the AllowNullValuesOnNewRow property is False (default).&amp;nbsp; So, to correct the issue, you can set that property to false (just know you're going to have plenty of null values), or set the column back to DBNull.Value in the SetDefaultValues() method within the business object.&amp;nbsp; Then, when the NULL value is inserted into the DB, the DefaultText is used, which is your fn{GetDate()}.</description><pubDate>Mon, 04 Dec 2006 13:49:37 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>