<?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: Cannot convert date expectedly with FormatDate function in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91351#M41384</link>
    <description>Hi S,&lt;BR /&gt;&lt;BR /&gt;We are on 6.10.5 but I gave it a try anyway. I tried the following:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;FormatDate(Today(), "ddMMMyy") which gives "24Oct22"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;FormatDate(Today(), "ddMMyy") that gives "241022"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
Are you sure you use MMM and not MM in you example?&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>Mon, 24 Oct 2022 05:47:00 GMT</pubDate>
    <dc:creator>PvD_SE</dc:creator>
    <dc:date>2022-10-24T05:47:00Z</dc:date>
    <item>
      <title>Cannot convert date expectedly with FormatDate function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91350#M41383</link>
      <description>Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to convert the date as per below, but it doesn't work. I'm using 6.10.3 in Japan.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;My Expectation&lt;BR /&gt;&lt;/SPAN&gt;Function : FormatDate("2022/10/23", "ddMMMyy")&lt;BR /&gt;Result : "23&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Oct&lt;/SPAN&gt;&lt;/STRONG&gt;22"&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;BR /&gt;Current Actual&lt;BR /&gt;&lt;/SPAN&gt;Function : FormatDate("2022/10/23", "ddMMMyy")&lt;BR /&gt;Rsult : "23&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;10&lt;/STRONG&gt;&lt;/SPAN&gt;22"&lt;BR /&gt;&lt;BR /&gt;I do not know why this function behaves like this, which deos not follow the specification from BluePrism official definition. I hope your help, anyone.&lt;BR /&gt;&lt;BR /&gt;Thanks for reading.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shohei Otsu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 23 Oct 2022 13:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91350#M41383</guid>
      <dc:creator>ShoheiOtsu</dc:creator>
      <dc:date>2022-10-23T13:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot convert date expectedly with FormatDate function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91351#M41384</link>
      <description>Hi S,&lt;BR /&gt;&lt;BR /&gt;We are on 6.10.5 but I gave it a try anyway. I tried the following:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;FormatDate(Today(), "ddMMMyy") which gives "24Oct22"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;FormatDate(Today(), "ddMMyy") that gives "241022"&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
Are you sure you use MMM and not MM in you example?&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>Mon, 24 Oct 2022 05:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91351#M41384</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-10-24T05:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot convert date expectedly with FormatDate function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91352#M41385</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/31320"&gt;@ShoheiOtsu&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;The DateTimeFormatInfo.AbbreviatedMonthNames property for the culture setting ja-JP is defined as numbers. You won't get month abbreviations.&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Oct 2022 13:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91352#M41385</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2022-10-24T13:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot convert date expectedly with FormatDate function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91353#M41386</link>
      <description>@Micheal&amp;nbsp;Charron&lt;BR /&gt;Oh, ok. I will search other method which meets my requirement.​ Thank you for the information&lt;BR /&gt;&lt;BR /&gt;@Paul JHM van Doorn&lt;BR /&gt;​Thank you for the response. My question is resoved as per Micheal's answer.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shohei Otsu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Oct 2022 22:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91353#M41386</guid>
      <dc:creator>ShoheiOtsu</dc:creator>
      <dc:date>2022-10-24T22:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot convert date expectedly with FormatDate function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91354#M41387</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/31320"&gt;@ShoheiOtsu&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to keep it as a calculation, might I suggest:&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;FormatDate([Source Date],"dd") &amp;amp; Mid("JanFebMarAprMayJunJulAugSepOctNovDec", ((ToNumber(FormatDate([Source Date],"MM"))-1) * 3)+1, 3) &amp;amp;  FormatDate([Source Date],"yy")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;​&lt;BR /&gt;It's ugly but it works.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Micheal Charron&lt;BR /&gt;Senior Manager&lt;BR /&gt;RBC&lt;BR /&gt;America/Toronto&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Oct 2022 11:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91354#M41387</guid>
      <dc:creator>MichealCharron</dc:creator>
      <dc:date>2022-10-25T11:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Cannot convert date expectedly with FormatDate function</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91355#M41388</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/548"&gt;@MichealCharron&lt;/a&gt;&lt;BR /&gt;I tried it and confirmed it works!! Thank you for the instruction.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shohei Otsu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Oct 2022 22:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-convert-date-expectedly-with-FormatDate-function/m-p/91355#M41388</guid>
      <dc:creator>ShoheiOtsu</dc:creator>
      <dc:date>2022-10-26T22:58:00Z</dc:date>
    </item>
  </channel>
</rss>

