Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getFormattedDate(long timestamp) { Date date = new Date(); date.setTime(timestamp); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy"); return sdf.format(date); } }