title: Changing text to date on pandas
body: <p>I have a text column with the format of dd-mmm-yy (e.g.01-Jun-22) for the date.
  I tried the following code:</p>
  <pre><code>df['new_date'] = df['date_text'].dt.strftime('%d/%b/%y')
  </code></pre>
  <p>I'm using this table as a guide (<a href="https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior" rel="nofollow noreferrer">https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior</a>) but I got the following error: AttributeError: Can only use .dt accessor with datetimelike values.
  Will appreciate any advice.</p>