<?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: Need to change date format in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/need-to-change-date-format/m-p/5504#M2423</link>
    <description>&lt;P&gt;Ruby interprets "23" very literally, so it thinks the date is October 2 (day), 23 (year)&lt;/P&gt;&lt;P&gt;If all of your years are over 2000, you can do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;"02-Oct-23".to_date + 2000.years ## outputs 2023-10-23&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, you can do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[date].strftime("%d-%m-%Y") ## outputs "02-10-2023"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This site is a great reference for using strftime to reformat dates:&amp;nbsp;&lt;A href="https://strftime.org/" target="_blank" rel="noopener"&gt;https://strftime.org/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2023 18:55:08 GMT</pubDate>
    <dc:creator>gary1</dc:creator>
    <dc:date>2023-10-27T18:55:08Z</dc:date>
    <item>
      <title>Need to change date format</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/need-to-change-date-format/m-p/5503#M2422</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I change the date format from &lt;STRONG&gt;02-Oct-23&lt;/STRONG&gt; to &lt;STRONG&gt;02-10-2023.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this by workato formula?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 18:19:08 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/need-to-change-date-format/m-p/5503#M2422</guid>
      <dc:creator>MurugarajSa</dc:creator>
      <dc:date>2023-10-27T18:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change date format</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/need-to-change-date-format/m-p/5504#M2423</link>
      <description>&lt;P&gt;Ruby interprets "23" very literally, so it thinks the date is October 2 (day), 23 (year)&lt;/P&gt;&lt;P&gt;If all of your years are over 2000, you can do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;"02-Oct-23".to_date + 2000.years ## outputs 2023-10-23&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, you can do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[date].strftime("%d-%m-%Y") ## outputs "02-10-2023"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This site is a great reference for using strftime to reformat dates:&amp;nbsp;&lt;A href="https://strftime.org/" target="_blank" rel="noopener"&gt;https://strftime.org/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 18:55:08 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/need-to-change-date-format/m-p/5504#M2423</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-10-27T18:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to change date format</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/need-to-change-date-format/m-p/5508#M2425</link>
      <description>&lt;P&gt;It works perfectly. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 05:17:26 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/need-to-change-date-format/m-p/5508#M2425</guid>
      <dc:creator>MurugarajSa</dc:creator>
      <dc:date>2023-10-28T05:17:26Z</dc:date>
    </item>
  </channel>
</rss>

