Here you can find the source of toDate(int date)
public static String toDate(int date)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String toDate(int date) { return new SimpleDateFormat("dd.MM.yyyy").format(new Date(date * 1000L)); }//w w w .ja va 2 s . c o m }