Android Utililty Methods Milliseconds to Date Convert

List of utility methods to do Milliseconds to Date Convert

Description

The list of methods to do Milliseconds to Date Convert are organized into topic(s).

Method

StringgetDateByTimeInMillis(long milliseconds)
get Date By Time In Millis
calendar.setTimeInMillis(milliseconds);
return dateToString(calendar.getTime());
StringmillToDate(String mill)
mill To Date
Long date = Long.valueOf(mill);
SimpleDateFormat sfd = new SimpleDateFormat("yyyy-MM-dd");
Date date1 = new Date(date);
return sfd.format(date1);