Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Main { public static SimpleDateFormat formarDay = new SimpleDateFormat("MM-dd"); public static String parseDay(long dateDay) { Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(dateDay); Date date = calendar.getTime(); return formarDay.format(date); } }