title: How do you extract only the date from a python datetime?
body: <p>I have a dataframe in python. One of its columns is labelled <code>time</code>, which is a timestamp. Using the following code, I have converted the timestamp to <code>datetime</code>:</p>
  
  <pre><code>milestone['datetime'] = milestone.apply(lambda x: datetime.datetime.fromtimestamp(x['time']), axis = 1)
  </code></pre>
  
  <p>Now I want to separate (tokenize) date and time and have two different columns like <code>milestone['only_date']</code> and <code>milestone['only_time']</code>. How do I do this?</p>