title: Is mathplotlib.dates.DateFormatter() deprecated since strftime() is?
body: <p>As a newbie in coding, I don't understand fully if I can use <code>matplotlib.dates.DateFormatter()</code> without reservation, knowing that the function rely on <code>strftime()</code> which is deprecated.</p>
  <p>I was trying to fix a tick issue (how to change date format for xlabel ticks) and ran into this <a href="https://stackoverflow.com/questions/43968985/changing-the-formatting-of-a-datetime-axis-in-matplotlib?answertab=active#tab-top">effective solution</a></p>
  <p>This solution rely on <code>matplotlib.dates.DateFormatter()</code>.<br />
  This is my code using this function:</p>
  <pre><code>import pandas as pd  
  import matplotlib.pyplot as plt  
  import matplotlib.dates as mdates  
  
  fig, ax = plt.subplots()  
  plt.plot(df.loc[:, &quot;LAST_PRICE&quot;])  
  hourFmt = mdates.DateFormatter('%H')  
  ax.xaxis.set_major_formatter(hourFmt) 
  plt.show()   
  </code></pre>
  <p>This solution works fine.</p>
  <p>The problem is that when trying to understand the function, I read that <code>strftime()</code> is <a href="https://matplotlib.org/3.1.0/api/dates_api.html#matplotlib.dates.DateFormatter.strftime" rel="nofollow noreferrer">deprecated</a></p>
  <p>Is it reasonable to use this function in my code, and if yes, why?<br />
  Thank you for your help</p>