I have a DatePicker d; and I need to get the milliseconds value of the date. (the milliseconds since 1970 value)
how can I do it?
You just have to convert your result, using Calendar, or, more easily, Joda-Time
Here is an example with Joda-Time :
DateMidnight d = new DateMidnight(picker.getYear(), picker.getMonth(), picker.getDayOfMonth()); long millis = d.toDate().getTime();