<?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 Convert excel General to Date time in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-excel-General-to-Date-time/m-p/2341884#M109801</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a date time in excel formatted as 'General' which outputs as this: 24/04/2023&amp;nbsp;13:54:50.&lt;/P&gt;&lt;P&gt;I am trying to bring this date time into the data warehouse but getting an error on the TMap. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Tmap has this as a string and I am using this to convert to a date time TalendDate.parseDate("dd/MM/yyyy HH:mm", row1.test_date_time)&amp;nbsp; but get the following error message, any idea how to resolve this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception in component tMap_1 (DIM_morts)&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Mon Apr 24 13:54:50 BST 2023"&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:971)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:915)&lt;/P&gt;&lt;P&gt;	at signal.dim_snapshots_new_0_1.&lt;/P&gt;&lt;P&gt;DIM_morts&lt;/P&gt;.tFileInputExcel_1Process(&lt;P&gt;DIM_morts&lt;/P&gt;.java:1273)&lt;P&gt;	at signal.dim_snapshots_new_0_1.&lt;/P&gt;&lt;P&gt;DIM_morts&lt;/P&gt;.runJobInTOS(&lt;P&gt;DIM_morts&lt;/P&gt;.java:1911)&lt;P&gt;	at signal.dim_snapshots_new_0_1.&lt;/P&gt;&lt;P&gt;DIM_morts&lt;/P&gt;.main(&lt;P&gt;DIM_morts&lt;/P&gt;.java:1749)&lt;P&gt;Caused by: java.text.ParseException: Unparseable date: "Mon Apr 24 13:54:50 BST 2023"&lt;/P&gt;&lt;P&gt;	at java.base/java.text.DateFormat.parse(DateFormat.java:399)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:957)&lt;/P&gt;&lt;P&gt;	... 4 more&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:52:22 GMT</pubDate>
    <dc:creator>thomas_2583</dc:creator>
    <dc:date>2024-11-15T21:52:22Z</dc:date>
    <item>
      <title>Convert excel General to Date time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-excel-General-to-Date-time/m-p/2341884#M109801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a date time in excel formatted as 'General' which outputs as this: 24/04/2023&amp;nbsp;13:54:50.&lt;/P&gt;&lt;P&gt;I am trying to bring this date time into the data warehouse but getting an error on the TMap. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Tmap has this as a string and I am using this to convert to a date time TalendDate.parseDate("dd/MM/yyyy HH:mm", row1.test_date_time)&amp;nbsp; but get the following error message, any idea how to resolve this please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception in component tMap_1 (DIM_morts)&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Mon Apr 24 13:54:50 BST 2023"&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:971)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:915)&lt;/P&gt;&lt;P&gt;	at signal.dim_snapshots_new_0_1.&lt;/P&gt;&lt;P&gt;DIM_morts&lt;/P&gt;.tFileInputExcel_1Process(&lt;P&gt;DIM_morts&lt;/P&gt;.java:1273)&lt;P&gt;	at signal.dim_snapshots_new_0_1.&lt;/P&gt;&lt;P&gt;DIM_morts&lt;/P&gt;.runJobInTOS(&lt;P&gt;DIM_morts&lt;/P&gt;.java:1911)&lt;P&gt;	at signal.dim_snapshots_new_0_1.&lt;/P&gt;&lt;P&gt;DIM_morts&lt;/P&gt;.main(&lt;P&gt;DIM_morts&lt;/P&gt;.java:1749)&lt;P&gt;Caused by: java.text.ParseException: Unparseable date: "Mon Apr 24 13:54:50 BST 2023"&lt;/P&gt;&lt;P&gt;	at java.base/java.text.DateFormat.parse(DateFormat.java:399)&lt;/P&gt;&lt;P&gt;	at routines.TalendDate.parseDate(TalendDate.java:957)&lt;/P&gt;&lt;P&gt;	... 4 more&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-excel-General-to-Date-time/m-p/2341884#M109801</guid>
      <dc:creator>thomas_2583</dc:creator>
      <dc:date>2024-11-15T21:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert excel General to Date time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-excel-General-to-Date-time/m-p/2341885#M109802</link>
      <description>&lt;P&gt;The problem is you read the date as String and that cause the component to convert the date value into a String by using the Java default pattern (thats what you see). &lt;/P&gt;&lt;P&gt;Please not not read it as String, read it as Date typed column!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 18:47:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-excel-General-to-Date-time/m-p/2341885#M109802</guid>
      <dc:creator>jlolling</dc:creator>
      <dc:date>2023-04-24T18:47:27Z</dc:date>
    </item>
  </channel>
</rss>

