title: How to convert user entered datetime to milliseconds
body: <p>I am trying to convert user entered datetime to milliseconds. Here i'm using template file for user to enter date time. And i'm extracting and stored in variable from and to.How to convert that into milliseconds.  </p>
  
  <pre><code>from = request.POST.get('from_date')
  to = request.POST.get('to_date')
  </code></pre>