Here you can find the source of getDateLabel(long time)
private static String getDateLabel(long time)
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; import android.content.Context; import android.os.SystemClock; import android.text.TextUtils; import com.ringcentral.kendo.R; public class Main{ private static String getDateLabel(long time) { SimpleDateFormat sdf = new SimpleDateFormat( SettingsFormatUtils.getDateFormat()); return sdf.format(new Date(time)); }//from w w w .ja v a2 s . c om }