title: Unable to change the date format to the yyyy-mm-dd h-m-s
body: <p>Below is the dataframe df as below</p>
  <pre><code>    RT_Date             DateCreated
  0   1/2/21 6:38         01-31-2021 14:38:12
  1   1/2/21 2:58         01-31-2021 10:57:50
  2   02-19-2021 17:59:00 02-19-2021 17:59:29
  3   9/2/21 12:49        9/2/21 11:35
  </code></pre>
  <p>I've written a code which checks if there's a 30 minutes difference between RT_Date and DateCreated i.e RT_Date - DateCreated = 30min difference. Below is the code</p>
  <pre><code>df['RT_Date'] = pd.to_datetime(df['RT_Date'])
  df['DateCreated'] = pd.to_datetime(df['DateCreated'])
  
  df['RT_Date'] = df['RT_Date'].dt.time
  df['DateCreated'] = df['DateCreated'].dt.time
  
  df['RT_Date'] = df['RT_Date'].astype(str)
  df['DateCreated'] = df['DateCreated'].astype(str)
  
  df['RT_Date'] = pd.to_timedelta(df['RT_Date'])
  df['DateCreated'] = pd.to_timedelta(df['DateCreated'])
  
  df['Diff'] = df['RT_Date'] - df['DateCreated']
  
  df['Diff'] = df['Diff'].dt.total_seconds()
  
  df['Diff'] = df['Diff']/60
  
  df['Diff'] = df['Diff'].astype(int)
  
  df['Diff'] = df['Diff'].abs()
  
  df['Diff'] = df['Diff'].apply(lambda x: x &lt;= 30)
  </code></pre>
  <p>And below is the output</p>
  <pre><code>    RT_Date         DateCreated     Diff
  0   0 days 06:38:00 0 days 14:38:12 False
  1   0 days 02:58:00 0 days 10:57:50 False
  2   0 days 17:59:00 0 days 17:59:29 True
  3   0 days 12:49:00 0 days 11:35:00 False
  </code></pre>
  <p>In the above output, i'm confused why it's taking as 0 days. Can anyone rectify this error??</p>