<?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: Using TalendDate.getDate and Parsing in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357549#M122809</link>
    <description>&lt;P&gt;Hi @John Slator​,&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/QrWkwPvKmKybs~JNLeBt3Q/HUMgeiW9TakG3aDk5I0Hjw&lt;/P&gt;&lt;P&gt;TalendDate.getDate("Format of the string - ex: CCYY-MM-DD") return a date&lt;/P&gt;&lt;P&gt;TalendDate.formatDate("date format - eg.: yyyy-MM-dd HH:mm:ss", Date() to be formatted) return a String from a date&lt;/P&gt;&lt;P&gt;TalendDate.parseDate("format date of the string to be parsed", "string in the format of the date to be parsed") return a date from a String&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 06:50:33 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2021-07-28T06:50:33Z</dc:date>
    <item>
      <title>Using TalendDate.getDate and Parsing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357548#M122808</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using tMap to add a date column using TalendDate.getDate("DD-MM-CCYY"). This is so a can trend on certain data so need a date of data extract (History_Date) added to every row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select the type as Date i get a error saying "Cant change string to date" so have to revert it back to string.  I have looked through the expressions and it looks like a now need to use ParseDate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i do this in the same tMap? and how or do i need to do it some other way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The column i have added can be seen at the bottom of the list on the right hand pain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000H99ihAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136731i46B47CF90B143666/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000H99ihAAB.png" alt="0695b00000H99ihAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357548#M122808</guid>
      <dc:creator>JSlatorMHC</dc:creator>
      <dc:date>2024-11-15T23:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate.getDate and Parsing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357549#M122809</link>
      <description>&lt;P&gt;Hi @John Slator​,&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/QrWkwPvKmKybs~JNLeBt3Q/HUMgeiW9TakG3aDk5I0Hjw&lt;/P&gt;&lt;P&gt;TalendDate.getDate("Format of the string - ex: CCYY-MM-DD") return a date&lt;/P&gt;&lt;P&gt;TalendDate.formatDate("date format - eg.: yyyy-MM-dd HH:mm:ss", Date() to be formatted) return a String from a date&lt;/P&gt;&lt;P&gt;TalendDate.parseDate("format date of the string to be parsed", "string in the format of the date to be parsed") return a date from a String&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 06:50:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357549#M122809</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-28T06:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate.getDate and Parsing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357550#M122810</link>
      <description>&lt;P&gt;Thanks @guenneguez jeremy​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i now understand the parsedate....so in my case if i am using TalendDate.getDate on a column i have added to the ouput of the tMap where abouts do you parse it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 08:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357550#M122810</guid>
      <dc:creator>JSlatorMHC</dc:creator>
      <dc:date>2021-07-28T08:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate.getDate and Parsing</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357551#M122811</link>
      <description>&lt;P&gt;for example if i want a new field on my output with the today date :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for a date output&lt;/P&gt;&lt;P&gt;in the value field of the output :&lt;/P&gt;&lt;P&gt;TalendDate.getDate("YYYY-MM-dd") &lt;/P&gt;&lt;P&gt;in the schema of the output : select Date as type and "YYYY-MM-dd" as date pattern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for a String output&lt;/P&gt;&lt;P&gt;in the value field of the output :&lt;/P&gt;&lt;P&gt;TalendDate.formatDate("YYYY-MM-dd",TalendDate.getDate("YYYY-MM-dd"))&lt;/P&gt;&lt;P&gt;in the schema of the output : select String as type&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here "YYYY-MM-dd" is the pattern I want for the date :&lt;/P&gt;&lt;P&gt;result for today : 2021-07-28&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 08:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-getDate-and-Parsing/m-p/2357551#M122811</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-07-28T08:58:17Z</dc:date>
    </item>
  </channel>
</rss>

