<?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 How to convert 12 Hour Time to 24 Hour Time date in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294840#M67679</link>
    <description>I have a text file that has a string column with a datetime formatted as "MM/dd/yyyy HH:mm:ss aa" or "02/18/2009 03:30:00 AM"&lt;BR /&gt;I am trying to extract the Time and convert it to a 24 Hour Date field. &lt;BR /&gt;So far in Tmap I have used the following syntax to extract the time data as a date field but it is still in a 12 hour format. Is there any way to convert it to 24 hour format?&lt;BR /&gt;  &lt;BR /&gt;&lt;PRE&gt;TalendDate.parseDate("HH:mm:ss aa",TalendDate.formatDate("HH:mm:ss aa",TalendDate.parseDate("MM/dd/yyyy HH:mm:ss aa",row2.Last_Connect)))&lt;/PRE&gt;</description>
    <pubDate>Sat, 16 Nov 2024 13:57:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:57:59Z</dc:date>
    <item>
      <title>How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294840#M67679</link>
      <description>I have a text file that has a string column with a datetime formatted as "MM/dd/yyyy HH:mm:ss aa" or "02/18/2009 03:30:00 AM"&lt;BR /&gt;I am trying to extract the Time and convert it to a 24 Hour Date field. &lt;BR /&gt;So far in Tmap I have used the following syntax to extract the time data as a date field but it is still in a 12 hour format. Is there any way to convert it to 24 hour format?&lt;BR /&gt;  &lt;BR /&gt;&lt;PRE&gt;TalendDate.parseDate("HH:mm:ss aa",TalendDate.formatDate("HH:mm:ss aa",TalendDate.parseDate("MM/dd/yyyy HH:mm:ss aa",row2.Last_Connect)))&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2024 13:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294840#M67679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294841#M67680</link>
      <description>Hi 
&lt;BR /&gt;I got this to work :- 
&lt;BR /&gt;Input column - 'Date' datatype 
&lt;BR /&gt;Input column date pattern = "MM/dd/yyyy hh:mm:ss a" 
&lt;BR /&gt;Input value = 02/18/2009 11:30:00 PM 
&lt;BR /&gt;tMap expression variable var1 - 'Date' datatype 
&lt;BR /&gt;Output column - 'Date' datatype 
&lt;BR /&gt;Output column date pattern = "MM/dd/yyyy HH:mm:ss" 
&lt;BR /&gt;Output value = 02/18/2009 23:30:00 
&lt;BR /&gt;HTH</description>
      <pubDate>Fri, 08 May 2009 22:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294841#M67680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-08T22:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294842#M67681</link>
      <description>Thanks but when the input data type is String this does not seem to work. Any other suggestions?</description>
      <pubDate>Mon, 11 May 2009 19:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294842#M67681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-11T19:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294843#M67682</link>
      <description>It seems that no matter what I try use Talend.ParseDate against a STRING in the format of "MM/dd/yyyy HH:mm:ss aa" or "2/12/2009 02:12:00 PM" it converts the date to AM. 
&lt;BR /&gt;I have tried this numerous ways. Am I missing something? 
&lt;BR /&gt; 
&lt;PRE&gt;TalendDate.parseDate("MM/dd/yyyy HH:mm:ss aa",row2.Last_Connect)&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2009 19:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294843#M67682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-11T19:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294844#M67683</link>
      <description>Hi, 
&lt;BR /&gt;Try :- 
&lt;BR /&gt;Input column - 'String' datatype 
&lt;BR /&gt;Input value = 02/18/2009 11:30:00 PM 
&lt;BR /&gt;tMap expression variable var1 - 'Date' datatype 
&lt;BR /&gt;Expression = new Date(row2.Last_Connect) 
&lt;BR /&gt;Output column - 'Date' datatype 
&lt;BR /&gt;Output column date pattern = "MM/dd/yyyy HH:mm:ss" 
&lt;BR /&gt;Output value = 02/18/2009 23:30:00</description>
      <pubDate>Mon, 11 May 2009 20:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294844#M67683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-11T20:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294845#M67684</link>
      <description>Thanks Works Great!</description>
      <pubDate>Mon, 11 May 2009 21:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294845#M67684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-11T21:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294846#M67685</link>
      <description>TalendDate.getPartOfDate("HOUR",TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",TalendDate.formatDate("yyyy-MM-dd hh:mm:ss",row1.HOUR)))&lt;BR /&gt;can anyone help me out please what wrong in this code, i am trying to fetch 24hrs day format from the above code.</description>
      <pubDate>Wed, 22 Apr 2015 23:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294846#M67685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T23:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294847#M67686</link>
      <description>My output looks like 0 to 12 here is in below , my requirement is the HOUR column have to be 0 to 24 like minutes 0 to 59.&lt;BR /&gt;I am new to Talend and i did not find any documentation&amp;nbsp; forum how to convert the time format to 24 hrs</description>
      <pubDate>Wed, 22 Apr 2015 23:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294847#M67686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T23:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294848#M67687</link>
      <description>Hi srikant.panda57,&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TalendDate.getPartOfDate("HOUR",TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",TalendDate.formatDate("yyyy-MM-dd hh:mm:ss",row1.HOUR)))&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Could you please give us your input column? Is it "Date" type? &lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Elaborating your case with an example with input and expected output values will be preferred.&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;The method should be: TalendDate.getPartOfDate(String, Date):int&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Sun, 26 Apr 2015 14:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294848#M67687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-26T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert 12 Hour Time to 24 Hour Time date</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294849#M67688</link>
      <description>Hello Geeks,&lt;BR /&gt;Please help I am struggling , new to talend&lt;BR /&gt;I have a input string as &lt;FONT size="2"&gt;utcStartTime which has a value 1443696342801&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;I want to convert this into date&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;something like this : &lt;FONT face="Courier New"&gt;01-01-1970 11:52:39&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;tried many things&amp;nbsp;&lt;BR /&gt;&lt;FONT size="2"&gt;new java.util.Date(Long)(row1.HIREDATEe*1000))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;but still unable to do so&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;PLease helppp me&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Courier New"&gt;many thanks&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 22 Dec 2015 19:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-12-Hour-Time-to-24-Hour-Time-date/m-p/2294849#M67688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-22T19:51:30Z</dc:date>
    </item>
  </channel>
</rss>

