<?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 Yesterday's Date and Time in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81757#M33297</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm trying to use "get completed items" to get yesterday's completed item from 6.00pm to today at 8.00am. There is a filter that I can use in the action to achieve that and I know to get yesterday's date is "AddDays(Today(), -1)" expression, but what is the expression I can use to add time for yesterday's at 6.00pm and today at 8.00am?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15849.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16012iDE1ECC571178C0D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="15849.png" alt="15849.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nafiz Zainal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Mar 2023 07:17:00 GMT</pubDate>
    <dc:creator>NafizZainal</dc:creator>
    <dc:date>2023-03-15T07:17:00Z</dc:date>
    <item>
      <title>Yesterday's Date and Time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81757#M33297</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm trying to use "get completed items" to get yesterday's completed item from 6.00pm to today at 8.00am. There is a filter that I can use in the action to achieve that and I know to get yesterday's date is "AddDays(Today(), -1)" expression, but what is the expression I can use to add time for yesterday's at 6.00pm and today at 8.00am?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15849.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16012iDE1ECC571178C0D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="15849.png" alt="15849.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nafiz Zainal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2023 07:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81757#M33297</guid>
      <dc:creator>NafizZainal</dc:creator>
      <dc:date>2023-03-15T07:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Yesterday's Date and Time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81758#M33298</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try below to add time:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Your DateTime Data Item] + MakeTimeSpan(0,1,0,0).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The parameters represent Day, Hours, Minutes, Seconds.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Joshna Dammala&lt;BR /&gt;RPA Developer&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2023 08:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81758#M33298</guid>
      <dc:creator>Joshna_16</dc:creator>
      <dc:date>2023-03-15T08:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Yesterday's Date and Time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81759#M33299</link>
      <description>&lt;P&gt;Hello &lt;A id="MainCopy_ctl11_ucMessageList_rptMessageList_ProfileImageDisplay_0_NameLink_0" biobubblekey="31b4dfc0-6f1f-44da-851a-0184ffd3adb9" href="https://community.blueprism.com/network/profile?UserKey=31b4dfc0-6f1f-44da-851a-0184ffd3adb9" target="_blank" rel="noopener"&gt;Nafiz Zainal&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Function MakeTime(Hours, Minutes, Seconds) in BP gets a time made from given Hours, Minutes and Seconds, for your case it should be like this:&lt;/P&gt;
&lt;P&gt;For Yesterday :: AddDays(Today(), -1)&amp;amp;" "&amp;amp;MakeTime(18, 00, 00) and for Today ::&amp;nbsp; Today()&amp;amp;" "&amp;amp;MakeTime(8, 0, 0), let me know if you have any difficulties implementing this.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mukesh Kumar - Senior Automation Developer&lt;BR /&gt;&lt;BR /&gt;NHS England, United Kingdom, GB&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2023 08:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81759#M33299</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-03-15T08:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Yesterday's Date and Time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81760#M33300</link>
      <description>&lt;P&gt;Hello Mukesh,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the answer, it works perfectly! But, I would like to ask if this time generated is in UTC time or Local Time? If yes, then I should add "+(LocalTime()-UTCTime())" to get the Local Time right?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nafiz Zainal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2023 09:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81760#M33300</guid>
      <dc:creator>NafizZainal</dc:creator>
      <dc:date>2023-03-15T09:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Yesterday's Date and Time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81761#M33301</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/3409"&gt;@NafizZainal&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Just to make sure what time zone you are working with Try checking and comparing Now() and UTCTime() separately in Calc for Timezone Confirmation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However w&lt;/SPAN&gt;&lt;SPAN&gt;hen using&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;Maketime()&lt;/CODE&gt;&lt;SPAN&gt; within an action or process, the resulting time will be in the time zone of the machine where the Blue Prism Runtime Resource is running. This means that if the BP Runtime resource is running on a machine in the UTC time zone, the time returned by&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;Maketime()&lt;/CODE&gt;&lt;SPAN&gt; will be in UTC and similarly by default, the Control Room uses the time zone of the machine where it is installed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mukesh Kumar - Senior Automation Developer&lt;BR /&gt;&lt;BR /&gt;NHS England, United Kingdom, GB&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2023 09:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81761#M33301</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-03-15T09:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Yesterday's Date and Time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81762#M33302</link>
      <description>&lt;P&gt;Hi Nafiz,&lt;/P&gt;
&lt;P&gt;I just went through this last week with something.&amp;nbsp; When you look at the work queue in your BP console, you see things in local time, however they are stored in the database as UTC. When you do "get completed items", it takes the time you send in as UTC and returns you the items from the UTC.&amp;nbsp; So if you want something from 6 pm - 8 pm local time, do the conversion in advance and send in the UTC time to your "get completed items" action call.&amp;nbsp; There's a utility called Date/Time Manipulation that has a Local to UTC conversion if you need it.&amp;nbsp; (At least this was my experience, not sure if that's a configuration item anywhere...)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2023 12:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81762#M33302</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2023-03-15T12:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Yesterday's Date and Time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81763#M33303</link>
      <description>&lt;P&gt;Hi Diane and Mukesh,&lt;/P&gt;
&lt;P&gt;I understand now, really appreciate the clarification from both of you!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nafiz Zainal&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Mar 2023 04:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Yesterday-s-Date-and-Time/m-p/81763#M33303</guid>
      <dc:creator>NafizZainal</dc:creator>
      <dc:date>2023-03-16T04:03:00Z</dc:date>
    </item>
  </channel>
</rss>

