<?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 Cannot format date to e.g. 1st Mar 2025 in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119183#M52924</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to format a date from 01 Mar 2025 to 1st Mar 2025, 21 Mar 2025 to 21st Mar 2025 etc.&lt;/P&gt;&lt;P&gt;I've tried looking at formatdate but cannot find the correct pattern, in fact I don't think blue prism recognises 1st Mar 2025 as a valid date so is it even possible with the formatdate function? Any help on this would be appreciated,&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 12:58:13 GMT</pubDate>
    <dc:creator>rabbanir</dc:creator>
    <dc:date>2025-03-04T12:58:13Z</dc:date>
    <item>
      <title>Cannot format date to e.g. 1st Mar 2025</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119183#M52924</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to format a date from 01 Mar 2025 to 1st Mar 2025, 21 Mar 2025 to 21st Mar 2025 etc.&lt;/P&gt;&lt;P&gt;I've tried looking at formatdate but cannot find the correct pattern, in fact I don't think blue prism recognises 1st Mar 2025 as a valid date so is it even possible with the formatdate function? Any help on this would be appreciated,&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 12:58:13 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119183#M52924</guid>
      <dc:creator>rabbanir</dc:creator>
      <dc:date>2025-03-04T12:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot format date to e.g. 1st Mar 2025</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119186#M52925</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/6577"&gt;@rabbanir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the ordinal suffix(st,nd,th,rd) you might have to create a custom VB code and then concatenate it using expression in the calculation stage.&lt;/P&gt;&lt;P&gt;Do let me know if this works for you, will share the detailed steps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sayeed Bin Abdullah&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 16:56:28 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119186#M52925</guid>
      <dc:creator>SayeedBinAbdullah</dc:creator>
      <dc:date>2025-03-04T16:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot format date to e.g. 1st Mar 2025</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119187#M52926</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/6577"&gt;@rabbanir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to transform 1st Mar 2025 to 01 Mar 2025 you need a custom code or a string manipulation with Instr and Mid.&lt;/P&gt;&lt;P&gt;But if you need to transform 01 Mar 2025 to 1st Mar 2025 you can use this :&lt;/P&gt;&lt;P&gt;FormatDate("01 Mar 2025","dd")&amp;amp;"st "&amp;amp;FormatDate("01 Mar 2025","MMM")&amp;amp;" "&amp;amp;FormatDate("01 Mar 2025","yyyy")&lt;/P&gt;&lt;P&gt;your output will be a &lt;STRONG&gt;TEXT&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 17:38:41 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119187#M52926</guid>
      <dc:creator>Mohamad_Dakkouri</dc:creator>
      <dc:date>2025-03-04T17:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot format date to e.g. 1st Mar 2025</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119213#M52934</link>
      <description>&lt;P&gt;Hi sayeed,&lt;/P&gt;&lt;P&gt;Thanks for the reply. Yes that sounds like the way forward, if you could provide that would be great, thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 13:43:19 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119213#M52934</guid>
      <dc:creator>rabbanir</dc:creator>
      <dc:date>2025-03-05T13:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot format date to e.g. 1st Mar 2025</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119214#M52935</link>
      <description>&lt;P&gt;Hi Rabbani,&lt;/P&gt;&lt;P&gt;To get the ordinal suffix below VB code can be used,&lt;/P&gt;&lt;P&gt;Dim day As Integer&lt;BR /&gt;Dim suffix As String&lt;BR /&gt;Dim month As String&lt;BR /&gt;Dim year As String&lt;BR /&gt;Dim formattedDate As String&lt;/P&gt;&lt;P&gt;day = DatePart("d", [YourDateField])&lt;BR /&gt;month = Format([YourDateField], "MMM")&lt;BR /&gt;year = DatePart("yyyy", [YourDateField])&lt;/P&gt;&lt;P&gt;Select Case day&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Case 1, 21, 31&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;suffix = "st"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Case 2, 22&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;suffix = "nd"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Case 3, 23&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;suffix = "rd"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Case Else&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;suffix = "th"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End Select&lt;BR /&gt;&lt;BR /&gt;formattedDate = CStr(day) &amp;amp; suffix &amp;amp; " " &amp;amp; month &amp;amp; " " &amp;amp; year&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Input Parameter&lt;/STRONG&gt; -&amp;nbsp;&lt;SPAN&gt;YourDateField (Date)&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Output Parameter&lt;/STRONG&gt; - f&lt;SPAN&gt;ormattedDate (Text)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Once we have the suffix as&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2407"&gt;@Mohamad_Dakkouri&lt;/a&gt;&amp;nbsp;we can append the suffix to the date using below expression,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Day([CurrentDate]) &amp;amp; [formattedDate] &amp;amp; " " &amp;amp; Left(MonthName(Month([CurrentDate])), 3) &amp;amp; " " &amp;amp; Year([CurrentDate])"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sayeed Bin Abdullah&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 14:07:41 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119214#M52935</guid>
      <dc:creator>SayeedBinAbdullah</dc:creator>
      <dc:date>2025-03-05T14:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot format date to e.g. 1st Mar 2025</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119245#M52943</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/6577"&gt;@rabbanir&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Please find the screenshots attached,&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SayeedBinAbdullah_3-1741237195597.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40508i1A97A601989AED17/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="SayeedBinAbdullah_3-1741237195597.png" alt="SayeedBinAbdullah_3-1741237195597.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SayeedBinAbdullah_2-1741237175070.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40507i9BA47B5150F4630F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="SayeedBinAbdullah_2-1741237175070.png" alt="SayeedBinAbdullah_2-1741237175070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SayeedBinAbdullah_1-1741237143340.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40506i2DE37A015C3B0189/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="SayeedBinAbdullah_1-1741237143340.png" alt="SayeedBinAbdullah_1-1741237143340.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SayeedBinAbdullah_0-1741237376860.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/40509i8E896234D2614F3D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="SayeedBinAbdullah_0-1741237376860.png" alt="SayeedBinAbdullah_0-1741237376860.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Sayeed Bin Abdullah&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 05:04:47 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Cannot-format-date-to-e-g-1st-Mar-2025/m-p/119245#M52943</guid>
      <dc:creator>SayeedBinAbdullah</dc:creator>
      <dc:date>2025-03-06T05:04:47Z</dc:date>
    </item>
  </channel>
</rss>

