Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.TimeZone; public class Main { public static final String getStringTimeFromLong(final long timeInMillis) { final SimpleDateFormat format = new SimpleDateFormat("dd.MM.yy HH:mm"); final Calendar c = Calendar.getInstance(); c.setTimeInMillis(timeInMillis); c.setTimeZone(TimeZone.getDefault()); return format.format(c.getTime()); } }