ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Pass Parameter to NULLABLE DateTime field in C# .Net<blockquote><cite>jferguson says:</cite> <pre><code class="csharp spaces"></code><code class="csharp plain">new_rvw_cmd.Parameters.AddWithValue(</code><code class="csharp string">"@sub_tdi_dt"</code><code class="csharp plain">, sub_tdi_dt.Text);</code></pre> </blockquote> <p>&nbsp;Replace with</p> <pre class="brush: csharp">new_rvw_cmd.Parameters.AddWithValue(&#34;@sub_tdi_dt&#34;, !string.IsNullOrEmpty(sub_tdi_dt.Text) ? sub_tdi_dt.Text : DBNull.Value);</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/305215/Pass-Parameter-to-NULLABLE-DateTime-field-in-C-Net/https://www.aspforums.net:443/Threads/305215/Pass-Parameter-to-NULLABLE-DateTime-field-in-C-Net/Thu, 26 Nov 2015 01:46:49 GMT