<?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 RE: Getting Seconds portion of time along with date using Format function in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50043#M5340</link>
    <description>Thank you John and Matt.&lt;BR /&gt;&lt;BR /&gt;Since the Blue Prism time is in UTC, Now() gives the output in UTC time.&lt;BR /&gt;&lt;BR /&gt;So have made the below modifications and this serves the purpose for a passing the local date and time to a file name.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;FormatDateTime(Now()+(LocalTime()-UTCTime()), "dd-MM-yyyy hh_mm_ss")&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Will check out the link on reporting a bug.&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vijayendra Rao&lt;BR /&gt;Technical Lead&lt;BR /&gt;T-Systems ICT India Pvt. Ltd.&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 27 May 2020 03:26:00 GMT</pubDate>
    <dc:creator>VijayendraRao</dc:creator>
    <dc:date>2020-05-27T03:26:00Z</dc:date>
    <item>
      <title>Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50038#M5335</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;In the attached screenshot, the yellow highlighted portion ALWAYS shows the seconds as 00. Wherein I would like to display the actual seconds of the LocalTime(). &lt;BR /&gt;Please note, when just the LocalTime() is printed, it correctly displays the seconds, but NOT when combined with the Today() and when the Format function is used.&lt;BR /&gt;&lt;BR /&gt;I'm aware we can separately output Today and LocalTime via different Calc stages and then concatenate into a single Data Item. But is there a way to do the same in a single Calc stage just by formatting the date and time together to show the "seconds" part of the time too?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Expression used in below screenshot is&amp;nbsp;FormatDateTime(Today() &amp;amp; " " &amp;amp; LocalTime(), "dd-MM-yyyy HH_mm_ss")&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20336.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/20482i90BBC4F7C0ABA365/image-size/large?v=v2&amp;amp;px=999" role="button" title="20336.jpg" alt="20336.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vijay&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 22 May 2020 10:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50038#M5335</guid>
      <dc:creator>VijayendraRao</dc:creator>
      <dc:date>2020-05-22T10:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50039#M5336</link>
      <description>It seems when the result of LocalTime() is cast to text, the seconds are lost. Try the expression ""&amp;amp;LocalTime() to see what I mean.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 22 May 2020 17:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50039#M5336</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2020-05-22T17:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50040#M5337</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;Thank you for the response.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The expression&amp;nbsp; ""&amp;amp;LocalTime() shows as 08:35&lt;BR /&gt;&lt;/SPAN&gt;whereas LocalTime() shows as 08:35:46&lt;BR /&gt;&lt;BR /&gt;None of these would suit my project requirements.&lt;BR /&gt;My intention is to use the date as well as time with seconds in a file name because slash / and colon : cannot be used in file name I want to use it with hyphen and underscores as below.&lt;BR /&gt;&lt;BR /&gt;Format: dd-mm-yyyy HH_MM_SS&lt;BR /&gt;Output: 25-05-2020 08_35_46&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. This is not achievable through the FormatDateTime function (due to which this thread has been opened).&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;2. Also the below does NOT work as it again excludes the seconds&lt;BR /&gt;&lt;STRONG&gt;Replace(LocalTime(), ":", "_")&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;OR&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;3. First store&amp;nbsp;LocalTime() to a Time DataItem &lt;BR /&gt;and then use&amp;nbsp;Replace([myTime],":", "_") on that DataItem throws a 'Text cannot be interpreted as a Time' error message.&lt;BR /&gt;Using ToTime conversion also throws an error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It was preferable to use a single line of&amp;nbsp;FormatDateTime function.&lt;BR /&gt;But since neither of these 3 options work what are the other options you would like to suggest?&lt;BR /&gt;&lt;BR /&gt;Also maybe you might want to report the bug about FormatDateTime function&lt;BR /&gt;Or let me know if there is a way to report a bug.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vijay&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 25 May 2020 03:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50040#M5337</guid>
      <dc:creator>VijayendraRao</dc:creator>
      <dc:date>2020-05-25T03:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50041#M5338</link>
      <description>Hi Vijay&lt;BR /&gt;&lt;BR /&gt;It seems you can't use LocalTime as text because the seconds portion is lost during the cast that occurs with concatenation (&amp;amp;), Replace or any other text function. This may be a bug, I'm not sure - the support team may be able to help&amp;nbsp;&lt;A href="https://portal.blueprism.com/customer-support/how-can-i-get-help-customer-support" target="_blank" rel="noopener"&gt;https://portal.blueprism.com/customer-support/how-can-i-get-help-customer-support&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As a work around, try something like the following. It's convoluted but it may help you:&amp;nbsp;FormatDateTime(Now()+(LocalTime()-UTCTime()), "ss")&lt;BR /&gt;&lt;A href="https://portal.blueprism.com/customer-support/how-can-i-get-help-customer-support" target="_blank" rel="noopener"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 26 May 2020 08:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50041#M5338</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2020-05-26T08:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50042#M5339</link>
      <description>I use the following calculation to put a time stamp into a file name: &amp;nbsp;FormatDateTime(Now(),"yyyy_MM_dd - hh_mm_ss")&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Matt Palmer&lt;BR /&gt;Business Process Specialist&lt;BR /&gt;Chesapeake Energy&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 26 May 2020 13:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50042#M5339</guid>
      <dc:creator>MattPalmer</dc:creator>
      <dc:date>2020-05-26T13:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50043#M5340</link>
      <description>Thank you John and Matt.&lt;BR /&gt;&lt;BR /&gt;Since the Blue Prism time is in UTC, Now() gives the output in UTC time.&lt;BR /&gt;&lt;BR /&gt;So have made the below modifications and this serves the purpose for a passing the local date and time to a file name.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;FormatDateTime(Now()+(LocalTime()-UTCTime()), "dd-MM-yyyy hh_mm_ss")&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Will check out the link on reporting a bug.&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vijayendra Rao&lt;BR /&gt;Technical Lead&lt;BR /&gt;T-Systems ICT India Pvt. Ltd.&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 27 May 2020 03:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50043#M5340</guid>
      <dc:creator>VijayendraRao</dc:creator>
      <dc:date>2020-05-27T03:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50044#M5341</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;UPDATE: As an FYI to anyone who comes up on this thread-&lt;BR /&gt;&lt;BR /&gt;I have reported the bug to Blue Prism and they have agreed to fix it in the next release of Blue Prism.&lt;BR /&gt;It will be added in the future release notes with reference as BG-1533&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Until then the below line can be used as workaround&lt;BR /&gt;&lt;STRONG&gt;FormatDateTime(Now()+(LocalTime()-UTCTime()), "dd-MM-yyyy hh_mm_ss")&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vijay&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jun 2020 03:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50044#M5341</guid>
      <dc:creator>VijayendraRao</dc:creator>
      <dc:date>2020-06-02T03:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50045#M5342</link>
      <description>Thank You &lt;SPAN&gt;Vijayendra&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;thats exactly what im searching for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Martin Schirmeister&lt;BR /&gt;Business Analyst&lt;BR /&gt;neue leben AG&lt;BR /&gt;Hamburg&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2022 07:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50045#M5342</guid>
      <dc:creator>MartinSchirmeis</dc:creator>
      <dc:date>2022-08-04T07:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50046#M5343</link>
      <description>Cheers Martin! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Are you saying that the original bug that I reported on &lt;SPAN&gt;22/5/20 is not working for you because it is not yet fixed in any of the new releases?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vijay&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2022 07:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50046#M5343</guid>
      <dc:creator>VijayendraRao</dc:creator>
      <dc:date>2022-08-04T07:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Seconds portion of time along with date using Format function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50047#M5344</link>
      <description>i cant say exactly - i need a time combinated with Today() and LocalTime() - but the seconds were missing.&lt;BR /&gt;The workaround &lt;STRONG&gt;FormatDateTime(Now()+(LocalTime()-UTCTime()), "dd-MM-yyyy hh_mm_ss") &lt;/STRONG&gt;works as i need it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Martin Schirmeister&lt;BR /&gt;Business Analyst&lt;BR /&gt;neue leben AG&lt;BR /&gt;Hamburg&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2022 07:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Getting-Seconds-portion-of-time-along-with-date-using-Format/m-p/50047#M5344</guid>
      <dc:creator>MartinSchirmeis</dc:creator>
      <dc:date>2022-08-04T07:49:00Z</dc:date>
    </item>
  </channel>
</rss>

