<?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: get FILE NAME and current date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217712#M13193</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPQUAA4"&gt;@fred123&lt;/A&gt;&amp;nbsp;,to get the only file name you need to do in tjava with&amp;nbsp;&lt;SPAN&gt;((String)globalMap.get("tFileOutputDelimited_1_FILE_NAME")) of sub-string&amp;nbsp;function.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;TalendDate.getDate("dd-Mon-yyyy") can you try this.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 13:40:36 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2019-10-24T13:40:36Z</dc:date>
    <item>
      <title>get FILE NAME and current date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217711#M13192</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it possible to extracte only the file name and not the directory?&lt;/P&gt;
&lt;P&gt;Currentyl&amp;nbsp; I tried&amp;nbsp;((String)globalMap.get("tFileOutputDelimited_1_FILE_NAME")), which gives the whole path and not only the desired file name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And is it possible to get the current date formatted like this "24-Oct-2019"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently I am using&amp;nbsp;TalendDate.getDate("yyyyMMdd"), which obviously creates "20191024"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217711#M13192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T13:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: get FILE NAME and current date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217712#M13193</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPQUAA4"&gt;@fred123&lt;/A&gt;&amp;nbsp;,to get the only file name you need to do in tjava with&amp;nbsp;&lt;SPAN&gt;((String)globalMap.get("tFileOutputDelimited_1_FILE_NAME")) of sub-string&amp;nbsp;function.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;TalendDate.getDate("dd-Mon-yyyy") can you try this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217712#M13193</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-10-24T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: get FILE NAME and current date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217713#M13194</link>
      <description>&lt;P&gt;Hey thanks for the reply,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Mon" doesn't work but&amp;nbsp;TalendDate.getDate("dd-MMM-yyyy") generated nearly what I'm look for:&lt;/P&gt;
&lt;P&gt;"24-Okt-2019"&lt;/P&gt;
&lt;P&gt;Now I need the english value for month --&amp;gt; "Oct"&lt;/P&gt;
&lt;P&gt;I tried&lt;STRONG&gt;&amp;nbsp;TalendDate.formatDateLocale&lt;/STRONG&gt;("MMM",TalendDate.getDate("dd-MMM-yyyy"),"EN")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The method formatDateLocale(String, Date, String) in the type TalendDate is not applicable for the arguments (String, String, String)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I missing? Why is&amp;nbsp;TalendDate.getDate("dd-MMM-yyyy") a String argument?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217713#M13194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T14:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: get FILE NAME and current date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217714#M13195</link>
      <description>&lt;P&gt;Ok, I mxed up getDate and getCurrentDate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it works:&lt;/P&gt;&lt;P&gt;TalendDate.formatDateLocale("dd-MMM-yyyy",TalendDate.getCurrentDate(),"EN")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/get-FILE-NAME-and-current-date/m-p/2217714#M13195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-24T14:33:07Z</dc:date>
    </item>
  </channel>
</rss>

