<?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: How to convert Data Chr Strings to Date Strings in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26792#M18804</link>
    <description>&lt;P&gt;you can use universal sql syntax with R dataframes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df &amp;lt;- read.df(path = "/tmp/df.avro", source = "com.databricks.spark.avro")
createOrReplaceTempView(dfView, "df")
species &amp;lt;- sql("SELECT TO_DATE(string_date, 'dd/MM/yy') FROM dfView")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2022 10:16:46 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2022-03-01T10:16:46Z</dc:date>
    <item>
      <title>How to convert Data Chr Strings to Date Strings</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26791#M18803</link>
      <description>&lt;P&gt;Databricks Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New to Databricks and work in R code. I have a data from with a date field that is a chr string and need to convert to a date field. Tried the standard as.Date(x, format = "%Y-%m-%d") , then tried the dplyr::mutate function and that errored out to. So how does one convert chr date strings to a Date string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 19:03:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26791#M18803</guid>
      <dc:creator>Jeff1</dc:creator>
      <dc:date>2022-02-28T19:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Data Chr Strings to Date Strings</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26792#M18804</link>
      <description>&lt;P&gt;you can use universal sql syntax with R dataframes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df &amp;lt;- read.df(path = "/tmp/df.avro", source = "com.databricks.spark.avro")
createOrReplaceTempView(dfView, "df")
species &amp;lt;- sql("SELECT TO_DATE(string_date, 'dd/MM/yy') FROM dfView")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 10:16:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26792#M18804</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-03-01T10:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Data Chr Strings to Date Strings</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26793#M18805</link>
      <description>&lt;P&gt;Well that was certainly helpful - thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 19:32:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26793#M18805</guid>
      <dc:creator>Jeff1</dc:creator>
      <dc:date>2022-03-01T19:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert Data Chr Strings to Date Strings</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26794#M18806</link>
      <description>&lt;P&gt;Based upon the initial response I went with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_data.frame &amp;lt;- my_data.frame %&amp;gt;%&lt;/P&gt;&lt;P&gt;     mutate(date = to_date(data.frame_variable,  "yyyy-mm-dd"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 14:34:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-convert-data-chr-strings-to-date-strings/m-p/26794#M18806</guid>
      <dc:creator>Jeff1</dc:creator>
      <dc:date>2022-03-04T14:34:01Z</dc:date>
    </item>
  </channel>
</rss>

