Here you can find the source of convertIntToDate(int date)
public static String convertIntToDate(int date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String convertIntToDate(int date) { SimpleDateFormat sdf = new SimpleDateFormat("M-d HH:mm"); Long x = Long.valueOf(date) * 1000; Calendar c = Calendar.getInstance(); c.setTimeInMillis(x);/*w w w .java2 s . c o m*/ return sdf.format(c.getTime()); } public static String convertIntToDate(int date, String language) { SimpleDateFormat sdf = new SimpleDateFormat(language); Long x = Long.valueOf(date) * 1000; Calendar c = Calendar.getInstance(); c.setTimeInMillis(x); return sdf.format(c.getTime()); } }