<?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 Using TalendDate addDate Method in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237350#M25815</link>
    <description>Hi,
&lt;BR /&gt;I'm trying to use the TalendDate addDate method. I need to be able to add 90 days to any given date to properly generate a date that many days from now. Is the addDate method the proper way to do this? If so, how do I go about using it. I can't seem to make sense of the Help section within the program and I haven't been able to find any useful instructions online. 
&lt;BR /&gt;Thanks</description>
    <pubDate>Tue, 05 Jun 2012 19:31:08 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2012-06-05T19:31:08Z</dc:date>
    <item>
      <title>Using TalendDate addDate Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237350#M25815</link>
      <description>Hi,
&lt;BR /&gt;I'm trying to use the TalendDate addDate method. I need to be able to add 90 days to any given date to properly generate a date that many days from now. Is the addDate method the proper way to do this? If so, how do I go about using it. I can't seem to make sense of the Help section within the program and I haven't been able to find any useful instructions online. 
&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 05 Jun 2012 19:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237350#M25815</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-06-05T19:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate addDate Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237351#M25816</link>
      <description>Hi and welcome to the forum,
&lt;BR /&gt;Put your input file into a tMap component, on the output side of the tMap component.
&lt;BR /&gt;In the expression field on the ouput side of the tMap, use TalendDate.addDate(row1.MyDate, 90, "dd")
&lt;BR /&gt;You will have to replace row1.MyDate with the name of your date field.
&lt;BR /&gt;Good luck,
&lt;BR /&gt;Ben</description>
      <pubDate>Tue, 05 Jun 2012 19:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237351#M25816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-05T19:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate addDate Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237352#M25817</link>
      <description>Thanks for your quick reply. Do I need to include the date pattern? If so, how should it be shown? My input value is a string. &lt;BR /&gt;Also, what will the output data type be? Can I keep it as a string?&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 05 Jun 2012 19:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237352#M25817</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-06-05T19:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate addDate Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237353#M25818</link>
      <description>I've tried doing this but when I run the test in the expression builder with a legitimate example value, I get "Exception in thread "main" java.lang.Error: Unresolved compilation problem:"
&lt;BR /&gt;TalendDate.addDate(row1.TransactionDate,"yyyyMMdd",90,"dd")</description>
      <pubDate>Tue, 05 Jun 2012 19:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237353#M25818</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-06-05T19:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate addDate Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237354#M25819</link>
      <description>You need to drop the "yyyyMMdd".&lt;BR /&gt;Try this: TalendDate.addDate(row1.TransactionDate,90,"dd")</description>
      <pubDate>Tue, 05 Jun 2012 20:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237354#M25819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-05T20:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate addDate Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237355#M25820</link>
      <description>I've tried dropping what you suggested but I get an error message: "The method addDate(Date, int, String) in the type TalendDate is not applicable for the arguments (String, int, String)"
&lt;BR /&gt;My input is a string of format yyyyMMdd. I'd like my output to either be a date type or a string. 
&lt;BR /&gt;And this is my code now as you suggested: TalendDate.addDate(row1.TransactionDate,90,"dd")
&lt;BR /&gt;The expression builder still throws a flag. Perhaps it would work if I actually did a run but I'm not ready with the rest of my job yet to do that.
&lt;BR /&gt;Thanks for your help. I just don't know what is going wrong.</description>
      <pubDate>Tue, 05 Jun 2012 20:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237355#M25820</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-06-05T20:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate addDate Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237356#M25821</link>
      <description>Ok. row1.TransactionDate is currently formatted as a String. You will need to change that to a date. You can either do that at the point of import, or use nest the parseDate function inside the adddate.
&lt;BR /&gt;TalendDate.addDate(TalendDate.parseDate("yyyyMMdd", row1.TransactionDate),90,"dd")</description>
      <pubDate>Tue, 05 Jun 2012 20:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237356#M25821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-05T20:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using TalendDate addDate Method</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237357#M25822</link>
      <description>I've tried getting it all set up and I gave my job a test run. Any ideas now? 
&lt;BR /&gt;Exception in component tMap_1_TMAP_IN 
&lt;BR /&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "" 
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:643) 
&lt;BR /&gt; at bonusme.transaction_processing_0_1.Transaction_Processing.tFileList_1Process(Transaction_Processing.java:3472) 
&lt;BR /&gt; at bonusme.transaction_processing_0_1.Transaction_Processing.tMysqlConnection_1Process(Transaction_Processing.java:522) 
&lt;BR /&gt; at bonusme.transaction_processing_0_1.Transaction_Processing.runJobInTOS(Transaction_Processing.java:7978) 
&lt;BR /&gt; at bonusme.transaction_processing_0_1.Transaction_Processing.main(Transaction_Processing.java:7839) 
&lt;BR /&gt;Caused by: java.text.ParseException: Unparseable date: "" 
&lt;BR /&gt; at java.text.DateFormat.parse(DateFormat.java:337) 
&lt;BR /&gt; at routines.TalendDate.parseDate(TalendDate.java:641) 
&lt;BR /&gt; ... 4 more</description>
      <pubDate>Tue, 05 Jun 2012 21:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-TalendDate-addDate-Method/m-p/2237357#M25822</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-06-05T21:49:00Z</dc:date>
    </item>
  </channel>
</rss>

