<?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: Convert Date to YYYYMMDD in databricks sql in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13164#M7878</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can use the function &lt;I&gt;date_format(your_date_column, 'yyyyMMdd')&lt;/I&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 17:12:09 GMT</pubDate>
    <dc:creator>hbenzineb</dc:creator>
    <dc:date>2023-01-11T17:12:09Z</dc:date>
    <item>
      <title>Convert Date to YYYYMMDD in databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13160#M7874</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date column in a delta table called ADate. I need this in the format YYYYMMDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TSQL this is easy. However, I can't seem to be able to do this without splitting the YEAR, MONTH and Day and concatenating them together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 15:33:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13160#M7874</guid>
      <dc:creator>BeginnerBob</dc:creator>
      <dc:date>2022-07-18T15:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date to YYYYMMDD in databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13161#M7875</link>
      <description>&lt;P&gt;@Lloyd Vickery​&amp;nbsp; could you please share a sample of what date looks like in your delta table and desired output?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 01:46:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13161#M7875</guid>
      <dc:creator>AmanSehgal</dc:creator>
      <dc:date>2022-07-19T01:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date to YYYYMMDD in databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13162#M7876</link>
      <description>&lt;P&gt; &lt;A href="https://community.databricks.com/s/question/0D58Y00008xpCB8SAM/convert-date-to-yyyymmdd-in-databricks-sql" target="test_blank"&gt;https://community.databricks.com/s/question/0D58Y00008xpCB8SAM/convert-date-to-yyyymmdd-in-databricks-sql&lt;/A&gt; this might be helpful. let me know @Lloyd Vickery​&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 13:26:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13162#M7876</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-07-19T13:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date to YYYYMMDD in databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13163#M7877</link>
      <description>&lt;P&gt;Hello @Lloyd Vickery​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 10:20:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13163#M7877</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-05T10:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date to YYYYMMDD in databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13164#M7878</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can use the function &lt;I&gt;date_format(your_date_column, 'yyyyMMdd')&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 17:12:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/13164#M7878</guid>
      <dc:creator>hbenzineb</dc:creator>
      <dc:date>2023-01-11T17:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date to YYYYMMDD in databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/65965#M32974</link>
      <description>&lt;P&gt;I'll share I'm having a variant of the same issue. I have a varchar field in the form YYYYMMDD which I'm trying to join to another varchar field from another table in the form of MM/DD/YYYY. Does anyone know of a way&amp;nbsp;&lt;SPAN&gt;to do this in SPARK SQL without splitting the YEAR, MONTH and Day and concatenating them together? I've tried date_format, to_date, date, cast, and to_timestamp functions or different combinations of them, but haven't yet succeeded. Any help is appreciated. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 01:35:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/65965#M32974</guid>
      <dc:creator>JayDoubleYou42</dc:creator>
      <dc:date>2024-04-10T01:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Date to YYYYMMDD in databricks sql</title>
      <link>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/65973#M32977</link>
      <description>&lt;P&gt;basically with to_date() and date_format() you can play with dates all you want.&lt;BR /&gt;to_date converts a string to a date (with the format the datestring is in as a parameter), and date_format converts a date to a string (with the format the output has to be in as a parameter).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 06:33:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/convert-date-to-yyyymmdd-in-databricks-sql/m-p/65973#M32977</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2024-04-10T06:33:02Z</dc:date>
    </item>
  </channel>
</rss>

