<?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>question Format date in HIVE in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Format-date-in-HIVE/m-p/203463#M83852</link>
    <description>&lt;P&gt;Hello, how do you format date like this in HIVE ? &lt;/P&gt;&lt;P&gt;from:&lt;/P&gt;&lt;P&gt; Tue Sep 26 22:02:11 CDT 2018&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;2018-09-26 22:02:11&lt;/P&gt;&lt;P&gt;I've tried different format specifier but didn't work.  I must have done something wrong.  Any help would be helpful. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 10:31:47 GMT</pubDate>
    <dc:creator>ating28</dc:creator>
    <dc:date>2018-09-27T10:31:47Z</dc:date>
    <item>
      <title>Format date in HIVE</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Format-date-in-HIVE/m-p/203463#M83852</link>
      <description>&lt;P&gt;Hello, how do you format date like this in HIVE ? &lt;/P&gt;&lt;P&gt;from:&lt;/P&gt;&lt;P&gt; Tue Sep 26 22:02:11 CDT 2018&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;2018-09-26 22:02:11&lt;/P&gt;&lt;P&gt;I've tried different format specifier but didn't work.  I must have done something wrong.  Any help would be helpful. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 10:31:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Format-date-in-HIVE/m-p/203463#M83852</guid>
      <dc:creator>ating28</dc:creator>
      <dc:date>2018-09-27T10:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Format date in HIVE</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Format-date-in-HIVE/m-p/203464#M83853</link>
      <description>@A C&lt;P&gt;To change the format of the input time we need to use &lt;STRONG&gt;unix_timestamp&lt;/STRONG&gt; along with &lt;STRONG&gt;from_unixtime funcitons&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Try with below syntax&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; select from_unixtime(unix_timestamp("Tue Sep 26 22:02:11 CDT 2018",'EEE MMM dd HH:mm:ss z yyyy'),'yyyy-MM-dd HH:mm:ss');
+----------------------+--+
|         _c0          |
+----------------------+--+
| 2018-09-26 22:02:11  |
+----------------------+--+&lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer helped to resolve your issue, &lt;STRONG&gt;Click on Accept button below to accept the answer,&lt;/STRONG&gt; That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 20:17:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Format-date-in-HIVE/m-p/203464#M83853</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2018-09-27T20:17:41Z</dc:date>
    </item>
  </channel>
</rss>

