Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static final String FORMAT_DAY_OF_MONTH = "yyyy-MM-dd HH-mm-ss"; public static String formatDayAndMonth(long date) { SimpleDateFormat simpleDateFormat = new SimpleDateFormat(FORMAT_DAY_OF_MONTH, Locale.getDefault()); return simpleDateFormat.format(new Date((long) 1444897963)); } }