<?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: one of the date datatype format issue in pysaprk in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12601#M7392</link>
    <description>&lt;P&gt;FYI... You also have to set set spark.sql.legacy.timeParserPolicy = LEGACY for the above to work..&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 13:58:01 GMT</pubDate>
    <dc:creator>UmaMahesh1</dc:creator>
    <dc:date>2023-01-11T13:58:01Z</dc:date>
    <item>
      <title>one of the date datatype format issue in pysaprk</title>
      <link>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12599#M7390</link>
      <description>&lt;P&gt;if anyone has encountered this date type format - 6/15/25 12:00 AM could you mention the right formatting to be used in Pyspark.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:11:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12599#M7390</guid>
      <dc:creator>KVNARK</dc:creator>
      <dc:date>2023-01-11T13:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: one of the date datatype format issue in pysaprk</title>
      <link>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12600#M7391</link>
      <description>&lt;P&gt;Hi @KVNARK .​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below formatting to get it into a timestamp format...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;to_timestamp('6/15/25 12:00 AM', 'MM/dd/yy hh:mm aa')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will give you the timestamp like this -- 2025-06-15T00:00:00.000+0000&lt;/P&gt;&lt;P&gt;If you want only the date part, you can use to_date function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...Cheers..&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:49:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12600#M7391</guid>
      <dc:creator>UmaMahesh1</dc:creator>
      <dc:date>2023-01-11T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: one of the date datatype format issue in pysaprk</title>
      <link>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12601#M7392</link>
      <description>&lt;P&gt;FYI... You also have to set set spark.sql.legacy.timeParserPolicy = LEGACY for the above to work..&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:58:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12601#M7392</guid>
      <dc:creator>UmaMahesh1</dc:creator>
      <dc:date>2023-01-11T13:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: one of the date datatype format issue in pysaprk</title>
      <link>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12602#M7393</link>
      <description>&lt;P&gt;Without legacy, it will also work.&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/862i753A376773E4A9B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT to_timestamp('6/15/23 12:00 AM', 'M/dd/yy h:mm a')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 16:39:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/one-of-the-date-datatype-format-issue-in-pysaprk/m-p/12602#M7393</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2023-01-11T16:39:51Z</dc:date>
    </item>
  </channel>
</rss>

