<?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: Date validation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318812#M89124</link>
    <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Where do I insert the code? Do I just click 'Advance Mode' in the tFilterRow and type in the code you illustrated above?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You can insert the Java code in any text filed, such as 'Advance Mode' in the tFilterRow, the file name filed in tFileInputDelimited, tJava. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Thu, 06 May 2010 05:18:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-05-06T05:18:18Z</dc:date>
    <item>
      <title>Date validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318805#M89117</link>
      <description>Is there a way to validate the datetime in talend?
&lt;BR /&gt; is there any method like isValidDate(&amp;lt;&amp;lt;myString as string&amp;gt;&amp;gt;, &amp;lt;&amp;lt;myDateFormat as string&amp;gt;&amp;gt;) return 0 or 1 for OK or Not OK ?? 
&lt;BR /&gt;I have feeds that come in with junk data time ---check the month below
&lt;BR /&gt;In such cases when i format the date to yyyy-MM-dd HH:mm:ss i will get 2008-99-02 15:21:22.. which has invalid month.. and i have to reject the feed and not process it ..
&lt;BR /&gt;&amp;lt;date year="2008" month="99" date="2" /&amp;gt;
&lt;BR /&gt;&amp;lt;time hour="15" minute="21" second="43" /&amp;gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Sahana</description>
      <pubDate>Sat, 16 Nov 2024 13:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318805#M89117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318806#M89118</link>
      <description>Hello Sahana
&lt;BR /&gt;Try the method isDate(String stringDate, String pattern) provided by Talend. eg:
&lt;BR /&gt;
&lt;PRE&gt;TalendDate.isDate("2008-99-02 15:21:22", "yyyy-MM-dd HH:mm:ss")&lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 27 May 2009 03:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318806#M89118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-27T03:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318807#M89119</link>
      <description>Shong,
&lt;BR /&gt;I am trying :-
&lt;BR /&gt;TalendDate.isDate(keyed_workorders.TARGET_START_DT, "MM/dd/yyyy HH:mm:ss")
&lt;BR /&gt;where the TARGET_START_DT is defined as a Date type.
&lt;BR /&gt;I get error Method is undefined for isDate.
&lt;BR /&gt;Any ideas?</description>
      <pubDate>Sat, 01 Aug 2009 00:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318807#M89119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-01T00:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318808#M89120</link>
      <description>Hello guy 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;where the TARGET_START_DT is defined as a Date type.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;The data type of first parameter is String and this method returns a boolean value. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Sun, 02 Aug 2009 05:00:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318808#M89120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-02T05:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318809#M89121</link>
      <description>Shong,
&lt;BR /&gt;Whats the best way to convert a date defined field ot a string so that I can use te isdate check?
&lt;BR /&gt;Also what version of talend was the isdate check valid in?</description>
      <pubDate>Thu, 06 Aug 2009 22:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318809#M89121</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-08-06T22:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318810#M89122</link>
      <description>Hello Trevor
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Whats the best way to convert a date defined field ot a string so that I can use te isdate check?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;To convert a date to a string, you can use method:
&lt;BR /&gt;TalendDate.formatDateLocale(String pattern, java.util.Date date, String languageOrCountyCode)
&lt;BR /&gt;The isDate method is be used to check if a date with string format matchs the specify pattern.
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Also what version of talend was the isdate check valid in?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;I remenbered it is present since TOS3.0
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 07 Aug 2009 03:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318810#M89122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-07T03:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318811#M89123</link>
      <description>Hello, shong 
&lt;BR /&gt;I am a newbie to Talend, a newbie to Java, and also a newbie who only started working this year... 
&lt;BR /&gt;So I will ask a very very stupid question... 
&lt;BR /&gt;Where do I insert the code? Do I just click 'Advance Mode' in the tFilterRow and type in the code you illustrated above? 
&lt;BR /&gt;(What I need to do is to validate a series of dates, say three columns of date, and ouput them into a comma delimited file if those columns are empty or not a valid date or not in the specified date format.) 
&lt;BR /&gt;Thanks heaps!! 
&lt;BR /&gt;Dragonvoice</description>
      <pubDate>Thu, 06 May 2010 02:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318811#M89123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-06T02:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318812#M89124</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Where do I insert the code? Do I just click 'Advance Mode' in the tFilterRow and type in the code you illustrated above?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You can insert the Java code in any text filed, such as 'Advance Mode' in the tFilterRow, the file name filed in tFileInputDelimited, tJava. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 06 May 2010 05:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Date-validation/m-p/2318812#M89124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-06T05:18:18Z</dc:date>
    </item>
  </channel>
</rss>

