<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to Check if DateTime is empty in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76149#M28696</link>
    <description>Calculation formula to check for empty DateTime variable:&lt;BR /&gt;&lt;STRONG data-renderer-mark="true"&gt;InStr(Trim([dateTime]); "01.01.0001")=0&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Empty DateTime variable in Blue Prism results in &lt;SPAN&gt;"01.01.0001 00:00:00" which corresponds to value of &lt;/SPAN&gt;Field DateTime.MinValue:&amp;nbsp;&lt;A data-url="https://docs.microsoft.com/en-US/dotnet/api/system.datetime.minvalue?view=net-6.0" class="embedly-content" href="https://docs.microsoft.com/en-us/dotnet/api/system.datetime.minvalue?view=net-6.0" target="_blank" rel="noopener"&gt;DateTime.MinValue Field (System)&lt;/A&gt;
&lt;TABLE id="mce_2" contenteditable="false" width="500" height="400" cellpadding="10" style="border: 1px solid #ebebeb; border-left: 8px solid #ebebeb;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" style="border: none;"&gt;Microsoft&lt;/TD&gt;
&lt;TD style="border: none;text-align:right;" align="right"&gt;&lt;SPAN class="remove-embedded-content" style="cursor: pointer;"&gt;remove preview&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="border: none;" colspan="3"&gt;
&lt;TABLE style="border: none;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="border: none;"&gt;&lt;A style="text-decoration:none;" href="https://docs.microsoft.com/en-US/dotnet/api/system.datetime.minvalue?view=net-6.0" target="_blank" rel="noopener"&gt;&lt;IMG src="https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png" width="200" height="200" /&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD style="border: none;"&gt;
&lt;TABLE style="border: none;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="border: none;"&gt;DateTime.MinValue Field (System)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="border: none;"&gt;public: static initonly DateTime MinValue; public static readonly DateTime MinValue; staticval mutable MinValue : DateTime Public Shared ReadOnly MinValue As DateTime Field Value The following example instantiates a DateTime object by passing its constructor an Int64 value that represents a number of ticks.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="border: none;"&gt;&lt;A style="text-decoration:none;color:cadetblue" target="_blank" href="https://docs.microsoft.com/en-US/dotnet/api/system.datetime.minvalue?view=net-6.0" rel="noopener"&gt; View this on Microsoft &amp;gt;&lt;/A&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;A data-tag-text="BPTechTips" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=tags%3A%22BPTechTips%22&amp;amp;executesearch=true" data-tag-key="96c6fa99-5a9a-4919-98a6-d9ce55afe99f"&gt;#BPTechTips&lt;/A&gt;&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Stephan Knoell&lt;BR /&gt;Senior Developer&lt;BR /&gt;Roboyo&lt;BR /&gt;Munich&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Jul 2022 09:10:00 GMT</pubDate>
    <dc:creator>se61qoku</dc:creator>
    <dc:date>2022-07-06T09:10:00Z</dc:date>
    <item>
      <title>How to Check if DateTime is empty</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76149#M28696</link>
      <description>Calculation formula to check for empty DateTime variable:&lt;BR /&gt;&lt;STRONG data-renderer-mark="true"&gt;InStr(Trim([dateTime]); "01.01.0001")=0&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Empty DateTime variable in Blue Prism results in &lt;SPAN&gt;"01.01.0001 00:00:00" which corresponds to value of &lt;/SPAN&gt;Field DateTime.MinValue:&amp;nbsp;&lt;A data-url="https://docs.microsoft.com/en-US/dotnet/api/system.datetime.minvalue?view=net-6.0" class="embedly-content" href="https://docs.microsoft.com/en-us/dotnet/api/system.datetime.minvalue?view=net-6.0" target="_blank" rel="noopener"&gt;DateTime.MinValue Field (System)&lt;/A&gt;
&lt;TABLE id="mce_2" contenteditable="false" width="500" height="400" cellpadding="10" style="border: 1px solid #ebebeb; border-left: 8px solid #ebebeb;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD colspan="2" style="border: none;"&gt;Microsoft&lt;/TD&gt;
&lt;TD style="border: none;text-align:right;" align="right"&gt;&lt;SPAN class="remove-embedded-content" style="cursor: pointer;"&gt;remove preview&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="border: none;" colspan="3"&gt;
&lt;TABLE style="border: none;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="border: none;"&gt;&lt;A style="text-decoration:none;" href="https://docs.microsoft.com/en-US/dotnet/api/system.datetime.minvalue?view=net-6.0" target="_blank" rel="noopener"&gt;&lt;IMG src="https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png" width="200" height="200" /&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD style="border: none;"&gt;
&lt;TABLE style="border: none;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="border: none;"&gt;DateTime.MinValue Field (System)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="border: none;"&gt;public: static initonly DateTime MinValue; public static readonly DateTime MinValue; staticval mutable MinValue : DateTime Public Shared ReadOnly MinValue As DateTime Field Value The following example instantiates a DateTime object by passing its constructor an Int64 value that represents a number of ticks.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="border: none;"&gt;&lt;A style="text-decoration:none;color:cadetblue" target="_blank" href="https://docs.microsoft.com/en-US/dotnet/api/system.datetime.minvalue?view=net-6.0" rel="noopener"&gt; View this on Microsoft &amp;gt;&lt;/A&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;A data-tag-text="BPTechTips" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=tags%3A%22BPTechTips%22&amp;amp;executesearch=true" data-tag-key="96c6fa99-5a9a-4919-98a6-d9ce55afe99f"&gt;#BPTechTips&lt;/A&gt;&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Stephan Knoell&lt;BR /&gt;Senior Developer&lt;BR /&gt;Roboyo&lt;BR /&gt;Munich&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 09:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76149#M28696</guid>
      <dc:creator>se61qoku</dc:creator>
      <dc:date>2022-07-06T09:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Check if DateTime is empty</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76150#M28697</link>
      <description>Hi Stephan ,&lt;BR /&gt;You can use IsDate() and IsDateTime() expression to validate the Dates .It would return a flag of true/False .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22515.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/22655i9DA5AD4AFBED540D/image-size/large?v=v2&amp;amp;px=999" role="button" title="22515.png" alt="22515.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Hope this helps .&lt;BR /&gt;&lt;BR /&gt;Thanks ,&lt;BR /&gt;Satish Gunturi&lt;BR /&gt;Senior Consultant&lt;BR /&gt;Ignite IPA Pvt Ltd&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Satish Gunturi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 12:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76150#M28697</guid>
      <dc:creator>Satish1414</dc:creator>
      <dc:date>2022-07-06T12:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Check if DateTime is empty</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76151#M28698</link>
      <description>Hi Satish,&lt;BR /&gt;&lt;BR /&gt;thats an even better way. Thanks!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Stephan&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Stephan Knoell&lt;BR /&gt;Senior Developer&lt;BR /&gt;Roboyo&lt;BR /&gt;Munich&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jul 2022 12:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76151#M28698</guid>
      <dc:creator>se61qoku</dc:creator>
      <dc:date>2022-07-06T12:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Check if DateTime is empty</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76152#M28699</link>
      <description>Adding reference for a similar &lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&amp;amp;MessageKey=acd8a8a4-095f-43a6-acb3-50b515632299&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer?utm_source=blueprism&amp;amp;utm_medium=pweb&amp;amp;utm_campaign=gl-web-2022-q1-12-3-community-related-discussions" target="_blank" rel="noopener"&gt;thread&lt;/A&gt; for future references.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;If I was of assistance, please vote for it to be the "Best Answer".&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Tejaskumar Darji&lt;BR /&gt;Sr. Consultant-Technical Lead&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Aug 2022 06:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/76152#M28699</guid>
      <dc:creator>Tejaskumar_Darji</dc:creator>
      <dc:date>2022-08-02T06:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Check if DateTime is empty</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/117427#M52477</link>
      <description>&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;Above scenario will not help when you have date or datetime data item.&lt;/P&gt;&lt;P&gt;Would suggest creating an action in Object "Utility - Date and Time Manipulation" with name "DefaultDate", Input for code stage will be the date data item "inputDate" and Output as isDate a flag data item:&lt;/P&gt;&lt;P&gt;isDate = True&lt;BR /&gt;if inputDate = nothing&lt;BR /&gt;isDate = False&lt;BR /&gt;End if&lt;/P&gt;&lt;P&gt;if your element holds date then isDate will be True and if blank date is provided then flag isDate will be False.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amol Ashok Jangam&lt;/P&gt;&lt;P&gt;Lead Consultant&lt;/P&gt;&lt;P&gt;Infosys.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 13:47:47 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Check-if-DateTime-is-empty/m-p/117427#M52477</guid>
      <dc:creator>AmolJangam</dc:creator>
      <dc:date>2024-12-06T13:47:47Z</dc:date>
    </item>
  </channel>
</rss>

