<?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: Convert to specific date format (day . month . year) in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59199#M12893</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use the Format Cell action of MS Excel VBO to apply the correct format for &lt;B&gt;Reversal Posting Date column and then use the &lt;/B&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;B&gt;calculation&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt; stages as done for other 3 scenarios.&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Oct 2020 03:39:00 GMT</pubDate>
    <dc:creator>shashank.kumar280</dc:creator>
    <dc:date>2020-10-02T03:39:00Z</dc:date>
    <item>
      <title>Convert to specific date format (day . month . year)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59198#M12892</link>
      <description>​Hello,&lt;BR /&gt;Please, I need dates to be in format day(dot)month(dot)(year).&lt;BR /&gt;&lt;BR /&gt;Examples: 23.12.2020, 18.05.2021 etc&lt;BR /&gt;&lt;BR /&gt;But they can come in Excel files with multiple formats, example:&lt;BR /&gt;&lt;BR /&gt;
&lt;TABLE width="665" style="width: 757px;"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD style="width: 147.38px;"&gt;&lt;STRONG&gt;Translation Date&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD style="width: 139.2px;"&gt;&lt;STRONG&gt;Document Date&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD style="width: 7.23px;"&gt;&lt;/TD&gt;
&lt;TD style="width: 193.42px;"&gt;&lt;STRONG&gt;Tax Date&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD style="width: 253.77px;"&gt;&lt;STRONG&gt;Reversal Posting Date&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="width: 147.38px;"&gt;30/09/2020&lt;/TD&gt;
&lt;TD style="width: 139.2px;"&gt;9/30/2020&lt;/TD&gt;
&lt;TD style="width: 7.23px;"&gt;&lt;/TD&gt;
&lt;TD style="width: 193.42px;"&gt;14-Sep-20&lt;/TD&gt;
&lt;TD style="width: 253.77px;"&gt;44125.00&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;All of them are dates to be converted to day.Month.year.&lt;BR /&gt;&lt;BR /&gt;First one (30/09/20) I can convert using &lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;Replace&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;[&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;Original Date&lt;B&gt;]&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="font-size: small;"&gt;,&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small;"&gt;"/"&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="font-size: small;"&gt;,&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small;"&gt;"."&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;which returns the desired result (30.09.2020).&lt;BR /&gt;&lt;BR /&gt;Second one (9/30/2020) I can convert using &lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt;FormatDate&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;[&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;Original Date&lt;B&gt;]&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="font-size: small;"&gt;,&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small;"&gt;"dd.MM.yyyy"&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #800080; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;ex: FormatDate("9/30/2020","dd.MM.yyyy"), which returns the desired result (30.09.2020).&lt;BR /&gt;&lt;BR /&gt;Third case ("14-Sep-20") also is converted using FormatDate, the same function as second case.&lt;BR /&gt;&lt;BR /&gt;But how to convert the last case?&lt;BR /&gt;In Excel, it is wrongly formatted as Number instead of Date.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17147.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17300i3057C15F2A40D05A/image-size/large?v=v2&amp;amp;px=999" role="button" title="17147.png" alt="17147.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The only 2 functions are currently used and work for the first 3 cases, but how can I do to convert last case, please?&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17148.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17303iA8DA71F05A4D6C40/image-size/large?v=v2&amp;amp;px=999" role="button" title="17148.png" alt="17148.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eduardo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Oct 2020 03:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59198#M12892</guid>
      <dc:creator>EduardoGS_Carva</dc:creator>
      <dc:date>2020-10-02T03:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: Convert to specific date format (day . month . year)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59199#M12893</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use the Format Cell action of MS Excel VBO to apply the correct format for &lt;B&gt;Reversal Posting Date column and then use the &lt;/B&gt;&lt;SPAN style="font-size: 14px;"&gt;&lt;B&gt;calculation&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt; stages as done for other 3 scenarios.&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Oct 2020 03:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59199#M12893</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2020-10-02T03:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Convert to specific date format (day . month . year)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59200#M12894</link>
      <description>Hi Eduardo&lt;BR /&gt;&lt;BR /&gt;You should be able to use the Excel - VBO Format Cell action to directly amend the format type in the cell. In the input parameters set the cell format to "dd.MM.yy" and provide the cell reference you want it applied to. In this scenario I would normally find the starting cell and the last cell I want to format and apply the format to the entire range rather than doing individual ones with calculation steps to keep the process simpler&amp;nbsp;eg. "A2:D2".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this was helpful &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Oct 2020 08:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59200#M12894</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2020-10-02T08:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: Convert to specific date format (day . month . year)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59201#M12895</link>
      <description>I would recommend using Shashank's and Michael's solution, because it will still work if the formatting in the source document changes, but I wanted to offer two other alternatives in case they are needed.&lt;BR /&gt;&lt;BR /&gt;If you use a code stage, you can use the DateTime.FromOADate() function.&lt;BR /&gt;&lt;BR /&gt;You can also calculate the date using calculation stage with this expression:&lt;BR /&gt;&lt;CODE&gt;MakeDate(31, 12, 1899) + MakeTimeSpan([Date] - 1, 0, 0, 0)&lt;/CODE&gt;&lt;BR /&gt;This will not function correctly for dates between 1-Jan-1900 and 29-Feb-1900 due to the leap year bug; you would have to add 1 day for any serial values between 1 and 59 (see this &lt;A href="https://stackoverflow.com/questions/727466/how-do-i-convert-an-excel-serial-date-number-to-a-net-datetime" target="_blank" rel="noopener"&gt;StackOverflow post&lt;/A&gt;).&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Oct 2020 13:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59201#M12895</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-10-02T13:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Convert to specific date format (day . month . year)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59202#M12896</link>
      <description>​Thank you, &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1537"&gt;@shashank.kumar280&lt;/a&gt; and &lt;A class="user-content-mention" data-sign="@" data-contactkey="ddd4d6a3-af39-4c64-8db4-cdb1d05ed669" data-tag-text="@Michael ONeil" href="https://community.blueprism.com/network/profile?UserKey=ddd4d6a3-af39-4c64-8db4-cdb1d05ed669" data-itemmentionkey="caafc052-cf15-4749-9b12-4a3a7a9b6662"&gt;@Michael ONeil&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Format Cell can be used in Excel BO in BluePrism&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17130.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17286i7375E7BD17BC4435/image-size/large?v=v2&amp;amp;px=999" role="button" title="17130.png" alt="17130.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17131.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17289iC5D692A3951816D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="17131.png" alt="17131.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
​​&lt;BR /&gt;&lt;BR /&gt;Thank you everyone, it works, but the sheet is not recalculated and the new format does not appear until I save, close and reopen the file.&lt;BR /&gt;(I need to go to cell that changed, press F2 to edit and press Enter, then it gets re-calculated and shows the new format, dd.MM.yyyy).&lt;BR /&gt;&lt;BR /&gt;Thank you very much, guys!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eduardo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Oct 2020 16:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59202#M12896</guid>
      <dc:creator>EduardoGS_Carva</dc:creator>
      <dc:date>2020-10-02T16:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Convert to specific date format (day . month . year)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59203#M12897</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You have to divide &lt;SPAN&gt;44125.00/86400 and now you have to convert output to date format.(output will come like 0.235638)&lt;BR /&gt;&lt;BR /&gt;I hope it will work you.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nilesh&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nilesh Jadhav &lt;BR /&gt;Senior RPA Specialist&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Oct 2020 18:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59203#M12897</guid>
      <dc:creator>NileshJadhavBP</dc:creator>
      <dc:date>2020-10-02T18:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Convert to specific date format (day . month . year)</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59204#M12898</link>
      <description>I believe this is the best and fastest approach: select whole range and format it to desired DateFormat in a single action.&lt;BR /&gt;&lt;BR /&gt;Before, I was checking row-by-row if it is DateFormat.&lt;BR /&gt;If it is DateFormat in Excel, change to dd.MM.yyyy.&lt;BR /&gt;If it is a Text, then replace "/" to ".", as in "30/09/2020" to "30.09.2020".&lt;BR /&gt;If it is NumberFormat, then formatting in excel to DateFormat (dd.MM.yyyy) would also work.&lt;BR /&gt;&lt;BR /&gt;Whole range formatting (the best approach) can't be used if some cells are text, because it would turn them into ###########.&lt;BR /&gt;&lt;BR /&gt;Obs: VERY SLOW to check row-by-row as above when 100's rows to check and format.&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17139.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17292iF0393014000918D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="17139.png" alt="17139.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Thank you very much everyone.&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eduardo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2020 12:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Convert-to-specific-date-format-day-month-year/m-p/59204#M12898</guid>
      <dc:creator>EduardoGS_Carva</dc:creator>
      <dc:date>2020-10-09T12:52:00Z</dc:date>
    </item>
  </channel>
</rss>

