How to get milliseconds from a date picker?
<p>In my project I am saving milliseconds in a sqllite databse, by default I am saving</p>

<pre><code>System.currentTimeMillis()
</code></pre>

<p>in the database, but there is an option for the user to select previous date from a date picker? But what sould I save then when user selects a previous or up comming days from the date picker? How can I get that day as a long(milliseconds) format?</p>
