snipt

Ctrl+h for KB shortcuts
https://snipt.net/embed/a85e200b423ecce2940270ded524bc35/
/raw/a85e200b423ecce2940270ded524bc35/
a85e200b423ecce2940270ded524bc35
text
Text only
1
2019-08-19T09:39:18
True
False
False
Aug 01, 2019 at 09:59 AM
/api/public/snipt/295032/
writing-to-ud-table-from-customization
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a> </span></pre></div> </td></tr></table>

Text only

Converting Nullable DateTime to System.DateTime

DateTime custRequestDate = o.UDField<System.DateTime?>("OriginalCustRequestDate_c") ?? DateTime.Now;
https://snipt.net/embed/c12c50c712a5cba1e1461364242116ed/
/raw/c12c50c712a5cba1e1461364242116ed/
c12c50c712a5cba1e1461364242116ed
text
Text only
1
2019-08-15T00:59:41
True
False
False
May 30, 2019 at 08:47 AM
/api/public/snipt/148429/
converting-nullable-datetime-to-systemdatetime
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>DateTime custRequestDate = o.UDField&lt;System.DateTime?&gt;(&quot;OriginalCustRequestDate_c&quot;) ?? DateTime.Now; </span></pre></div> </td></tr></table>