<?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: Blue Prism Date formatting inconsistencies - save to Excel vs. save to csv in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Date-formatting-inconsistencies-save-to-Excel-vs-save/m-p/55174#M9561</link>
    <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;When embarking on a similar experiment, I only had my process create dates in Date format and in Text format in a CSV. When opening this CSV in XL, it gives mixed results. Well, not really mixed as it actually looks like a genuine mess in XL! The format as well as the delimiter are set by XL without any regard to whatever I decided to set it to be in my process (Date/Text). So I assume the format is taken from XL options, likely combined with Windows Regional and Date settings.&lt;/P&gt;
&lt;P&gt;Using yy rather than yyyy as the year format in your CSV data, does indeed make XL seriously mix up the format, providing this: yy/MM/20dd - in short: this is a royal mess!&lt;/P&gt;
&lt;P&gt;Upon opening the CSV in NotePad++ however, the results are exactly as I would expect them to be. I get the correct formatting as well as the correct delimiter. As such, I would suggest XL to be the culprit on any form of formatting deviations and delimiter creativity, as it was at least in my test opening the CSV in XL.&lt;/P&gt;
&lt;P&gt;In our shop, from early on we had challenges with date formatting in reports and documents. In order to make life a little easier for us developers, and provide a consistent method in data presentation to our business, an object was created that gets the date we need, most often the current date, and formats it to our date standard.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;---------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 16 Feb 2023 07:27:00 GMT</pubDate>
    <dc:creator>PvD_SE</dc:creator>
    <dc:date>2023-02-16T07:27:00Z</dc:date>
    <item>
      <title>Blue Prism Date formatting inconsistencies - save to Excel vs. save to csv</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Date-formatting-inconsistencies-save-to-Excel-vs-save/m-p/55173#M9560</link>
      <description>&lt;P data-renderer-start-pos="1"&gt;Blue Prism Save to Excel produces a different results depending on:&lt;/P&gt;
&lt;UL class="ak-ul" data-indent-level="1"&gt;
&lt;LI&gt;
&lt;P data-renderer-start-pos="72"&gt;Data type of source data: Date or Text&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P data-renderer-start-pos="114"&gt;Save as Excel or Excel save as CSV&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-renderer-start-pos="152"&gt;In summary results are &lt;SPAN style="text-decoration: underline;"&gt;opposite&lt;/SPAN&gt;. eg. date format saved to Excel retains dd/mm but text date format changes to mm/dd whereas text date format saved to Excel csv is retained but date format is converted.&lt;/P&gt;
&lt;P data-renderer-start-pos="152"&gt;To demonstrate, create a collection with 3 data elements:&lt;/P&gt;
&lt;P data-renderer-start-pos="376"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;
&lt;P data-renderer-start-pos="392"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text&lt;/P&gt;
&lt;P data-renderer-start-pos="408"&gt;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text where the year is in yy format (not yyyy)&lt;/P&gt;
&lt;P data-renderer-start-pos="408"&gt;Export using 3 methods:&lt;/P&gt;
&lt;UL&gt;
&lt;LI data-renderer-start-pos="408"&gt;Utility: Append To Text File&lt;/LI&gt;
&lt;LI data-renderer-start-pos="408"&gt;'Save As CSV' uses a custom object but in essence uses:&amp;nbsp;wb.SaveAs(filename,6):&lt;/LI&gt;
&lt;LI data-renderer-start-pos="408"&gt;Excel: Save Current Workbook as&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Results:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Using example date 10/01/2023 (NZ/UK format 10 January 2023)&lt;/P&gt;
&lt;P&gt;3 Data elements:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Date Format dd/mm/yyyy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text Format dd/mm/yyyy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text Format dd/mm/yy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Append to Text returns:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;10/01//2023 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10/01//2023 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/01//&lt;SPAN style="color: rgb(224, 62, 45);"&gt;20&lt;/SPAN&gt;23&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Excel returns:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;10/01//2023 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: rgb(224, 62, 45);"&gt;&amp;nbsp;1/10&lt;/SPAN&gt;//2023 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: rgb(224, 62, 45);"&gt;1/10/20&lt;/SPAN&gt;23&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Excel CSV returns:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: rgb(224, 62, 45);"&gt;1/10&lt;/SPAN&gt;/2023 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10/01//2023 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/01//&lt;SPAN style="color: rgb(224, 62, 45);"&gt;20&lt;/SPAN&gt;23&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Excel with .CSV extension returns:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;10/01//2023 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: rgb(224, 62, 45);"&gt;&amp;nbsp;1/10&lt;/SPAN&gt;//2023 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN style="color: rgb(224, 62, 45);"&gt;1/10/20&lt;/SPAN&gt;23&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Feb 2023 20:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Date-formatting-inconsistencies-save-to-Excel-vs-save/m-p/55173#M9560</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2023-02-15T20:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Blue Prism Date formatting inconsistencies - save to Excel vs. save to csv</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Date-formatting-inconsistencies-save-to-Excel-vs-save/m-p/55174#M9561</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;When embarking on a similar experiment, I only had my process create dates in Date format and in Text format in a CSV. When opening this CSV in XL, it gives mixed results. Well, not really mixed as it actually looks like a genuine mess in XL! The format as well as the delimiter are set by XL without any regard to whatever I decided to set it to be in my process (Date/Text). So I assume the format is taken from XL options, likely combined with Windows Regional and Date settings.&lt;/P&gt;
&lt;P&gt;Using yy rather than yyyy as the year format in your CSV data, does indeed make XL seriously mix up the format, providing this: yy/MM/20dd - in short: this is a royal mess!&lt;/P&gt;
&lt;P&gt;Upon opening the CSV in NotePad++ however, the results are exactly as I would expect them to be. I get the correct formatting as well as the correct delimiter. As such, I would suggest XL to be the culprit on any form of formatting deviations and delimiter creativity, as it was at least in my test opening the CSV in XL.&lt;/P&gt;
&lt;P&gt;In our shop, from early on we had challenges with date formatting in reports and documents. In order to make life a little easier for us developers, and provide a consistent method in data presentation to our business, an object was created that gets the date we need, most often the current date, and formats it to our date standard.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;---------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Feb 2023 07:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Date-formatting-inconsistencies-save-to-Excel-vs-save/m-p/55174#M9561</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2023-02-16T07:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Blue Prism Date formatting inconsistencies - save to Excel vs. save to csv</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Date-formatting-inconsistencies-save-to-Excel-vs-save/m-p/55175#M9562</link>
      <description>&lt;P&gt;Thanks Paul,&lt;/P&gt;
&lt;P&gt;My learning on this one was to go back to basics.&amp;nbsp; I needed to have a mix of Date fields in format Date and in format Text in an automation and when I started getting different results if the output was Excel or Excel-created CSV it was getting wildly confusing each time I made a tweak and ran a test.&lt;/P&gt;
&lt;P&gt;So taking it back to a limited experiment (as above) narrowed the problem and could be tested quickly.&lt;/P&gt;
&lt;P&gt;-Jeremy&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 19:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Date-formatting-inconsistencies-save-to-Excel-vs-save/m-p/55175#M9562</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2023-02-16T19:15:00Z</dc:date>
    </item>
  </channel>
</rss>

