How to convert date format to milliseconds?
<p>How to get the millisecond time from date? I have the following code. </p>

<pre><code>Date beginupd = new Date(cursor1.getLong(1));
</code></pre>

<p>This variable beginupd contains the format </p>

<blockquote>
  <p>Wed Oct 12 11:55:03 GMT+05:30 2011</p>
</blockquote>

<p>Now how to convert this format to the millisecond time in Long datatype?
Any help is highly appreciated and thanks in advance...</p>
