Java tutorial
//package com.java2s; import java.text.DateFormat; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static String getPrettyDate(int year, int month, int day) { Calendar c = new GregorianCalendar(year, month, day); DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG); return dateFormat.format(c.getTime()); } }