<?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: Load date time in context variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340255#M108302</link>
    <description>&lt;P&gt;You can get the current Date and Time using built-in function TalendDate.getCurrentDate(), eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on a tJava:&lt;/P&gt;&lt;P&gt;context.currentDate=TalendDate.getCurrentDate();&lt;/P&gt;&lt;P&gt;context.stringDatePart=TalendDate.formatDate("yyyy-MM-dd",context.currentDate);&lt;/P&gt;&lt;P&gt;context.stringTimePart=TalendDate.formatDate("HH:mm:ss",context.currentDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println(context.currentDate);&lt;/P&gt;&lt;P&gt;System.out.println("the date part is: "+context.stringDatePart);&lt;/P&gt;&lt;P&gt;System.out.println("the time part is: "+context.stringTimePart);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bEc4CAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131290i6473C2229F224450/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bEc4CAAS.png" alt="0695b00000bEc4CAAS.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get the current Date and Time, store them into context variables, use these context variables later on other components.&lt;/P&gt;&lt;P&gt;If you need to output the Date and Time to CSV, just use a tfixedFlowInput to generate the data flow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bEc4gAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155855i29CB3ED2C3ECB285/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bEc4gAAC.png" alt="0695b00000bEc4gAAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 09:04:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-27T09:04:35Z</dc:date>
    <item>
      <title>Load date time in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340252#M108299</link>
      <description>&lt;P&gt;&lt;B&gt;How to store the Date and Time values in context variable and write into a csv file.&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340252#M108299</guid>
      <dc:creator>Amit4</dc:creator>
      <dc:date>2024-11-15T22:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load date time in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340253#M108300</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Do you want to get the current Date and Time? Can you show an example what data you want? So we can give your more precise answer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 03:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340253#M108300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-27T03:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load date time in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340254#M108301</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I mentioned that I want to create a job which can write the current Date and Time in csv file i.e, whenever I run the job current time should be stored in my csv file. But the problem is I am not able to do using context variable. Hope it is clear now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank and Regards&lt;/P&gt;&lt;P&gt;Amit Yadav&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 04:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340254#M108301</guid>
      <dc:creator>Amit4</dc:creator>
      <dc:date>2022-12-27T04:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load date time in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340255#M108302</link>
      <description>&lt;P&gt;You can get the current Date and Time using built-in function TalendDate.getCurrentDate(), eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on a tJava:&lt;/P&gt;&lt;P&gt;context.currentDate=TalendDate.getCurrentDate();&lt;/P&gt;&lt;P&gt;context.stringDatePart=TalendDate.formatDate("yyyy-MM-dd",context.currentDate);&lt;/P&gt;&lt;P&gt;context.stringTimePart=TalendDate.formatDate("HH:mm:ss",context.currentDate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.out.println(context.currentDate);&lt;/P&gt;&lt;P&gt;System.out.println("the date part is: "+context.stringDatePart);&lt;/P&gt;&lt;P&gt;System.out.println("the time part is: "+context.stringTimePart);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bEc4CAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131290i6473C2229F224450/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bEc4CAAS.png" alt="0695b00000bEc4CAAS.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get the current Date and Time, store them into context variables, use these context variables later on other components.&lt;/P&gt;&lt;P&gt;If you need to output the Date and Time to CSV, just use a tfixedFlowInput to generate the data flow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bEc4gAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155855i29CB3ED2C3ECB285/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bEc4gAAC.png" alt="0695b00000bEc4gAAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 09:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340255#M108302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-27T09:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load date time in context variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340256#M108303</link>
      <description>&lt;P&gt;Thanks Shong,&lt;/P&gt;&lt;P&gt;It worked for me.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 09:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-date-time-in-context-variable/m-p/2340256#M108303</guid>
      <dc:creator>Amit4</dc:creator>
      <dc:date>2022-12-27T09:45:08Z</dc:date>
    </item>
  </channel>
</rss>

