<?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: IF with isdate checking in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369203#M132373</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOc9AAG"&gt;@azrylln&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you getting this error due to formatDate function which return string data type&amp;nbsp; accept only Date type value. So as&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;suggest you can use isDate function directly with your birthdate or if your date is in different pattern use parseDate function.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 10:02:23 GMT</pubDate>
    <dc:creator>aashish_21nov</dc:creator>
    <dc:date>2018-07-25T10:02:23Z</dc:date>
    <item>
      <title>IF with isdate checking</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369201#M132371</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I am a newbie to talend. I want to ask you, how to do this item below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to check the validity of a given date from an input table. If the date is a valid date, then the date will be inserted to output table. if it is not a valid date, then space will be inserted to the column. Both the input and output column are date field and my codes are as below:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TalendDate.isDate(TalendDate.formatDate("dd-MM-yyyy",row1.birthdate),"dd-MM-yyyy")?row1.birthdate:""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; when rebuilding, i got this compilation error: &amp;gt;&amp;gt; Type mismatch: cannot convert from String to Date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; please help me to solve this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;I am also open to ideas on how to make this process easier using Talend.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for helping me.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369201#M132371</guid>
      <dc:creator>azrylln</dc:creator>
      <dc:date>2018-07-25T09:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: IF with isdate checking</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369202#M132372</link>
      <description>&lt;P&gt;I suspect that the data type of the&amp;nbsp;&lt;SPAN&gt;row1.birthdate column is String and not Date. The formatDate method requires as Date. All you need to do is this....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  TalendDate.isDate(row1.birthdate,"dd-MM-yyyy")?row1.birthdate:""&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Of course, your row1.birthdate column will need to hold the date in "dd-MM-yyyy" format. I'd advise adding a tLogRow before the component you are using this logic in, so that you can see what the date format is of your String.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369202#M132372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T09:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF with isdate checking</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369203#M132373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOc9AAG"&gt;@azrylln&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;you getting this error due to formatDate function which return string data type&amp;nbsp; accept only Date type value. So as&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;suggest you can use isDate function directly with your birthdate or if your date is in different pattern use parseDate function.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369203#M132373</guid>
      <dc:creator>aashish_21nov</dc:creator>
      <dc:date>2018-07-25T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: IF with isdate checking</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369204#M132374</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LOUUAA4"&gt;@aashish&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOc9AAG"&gt;@azrylln&lt;/A&gt;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;you getting this error due to formatDate function which return string data type and isDate function accept only Date type value. So as&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;suggest you can use isDate function directly with your birthdate or if your date is in different pattern use parseDate function.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;This is not true. The isDate method requires two Strings (stringDate and pattern). There is absolutely no point to the isDate method if it accepts a Date object. A Date object is a Date or null.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369204#M132374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T10:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: IF with isdate checking</title>
      <link>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369205#M132375</link>
      <description>yeah @rhali its typo</description>
      <pubDate>Wed, 25 Jul 2018 10:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/IF-with-isdate-checking/m-p/2369205#M132375</guid>
      <dc:creator>aashish_21nov</dc:creator>
      <dc:date>2018-07-25T10:37:49Z</dc:date>
    </item>
  </channel>
</rss>

