Android: CalendarView onDateChangelistener Milliseconds value to DatePicker Milliseconds value
<p>I can't seem to correctly compare the two milleseconds value from teh CalendarView using <code>cw.getDate()</code> method </p>

<p>and the Calendars c.set() and c.getTimeInMillis inside the OnDateListner of The DatePicker</p>

<pre><code>Calendar c = Calendar.getInstance();
OnDateSetListener datePickerListener = new OnDateSetListener() {

    public void onDateSet(DatePicker view, int year, int monthOfYear,
            int dayOfMonth) {
        mYear = year;
        mDay = dayOfMonth;
        mMonth = monthOfYear;
        c.set(mYear, mMonth, mDay);
        dateView.setText(formatDate(c.getTimeInMillis()));
        dateViewMilli.setText(Long.toString(c.getTimeInMillis()));
    }
};
</code></pre>

<p>Here is the picture for difference</p>

<p><img src="http://i.stack.imgur.com/F4LIT.png" alt="enter image description here"></p>

<p><img src="http://i.stack.imgur.com/L1zmx.png" alt="enter image description here"></p>

<p>So how do i get the Milliseconds in DatePicker wherein it is completely the same value in CalendarView?.. cuz i can't query perfectly the values of the two cuz they have different long value.. i mean both timestamp are different despite it having same day, month, year... dunno wat happend.. maybe its on the parsing or wat.. for those any of you who have some knowledge about this please do share</p>

<p>UPDATE</p>

<hr>

<p>I have just read some article, and a friend also told me that both produces different timestamp values, thus best thing to do is to fomrat the timestamp first, say MM/DD/YYYY, then store is as a string den that's the time you compare..</p>

<p>Any other inputs are welcome also... </p>
