title: How to get difference (in minutes) between two date strings?
body: <p>I have two dates:</p>
  
  <pre><code>date1 &lt;- '2015-10-05T20:57:00.000'
  date2 &lt;- '2015-10-05T22:43:00.000'
  </code></pre>
  
  <p>1) I need to know the difference in minutes
  2) Also I want to extract year, month, day and hour.</p>
  
  <p>This is how I tried to solve these tasks:</p>
  
  <p>1) <code>time &lt;- difftime(date1,date2,units="mins")</code>  # the result is 0 instead of 106.</p>
  
  <p>2) I want to us "lubridate", but not sure how to apply it to my format.</p>