Java tutorial
import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static void main(String[] args) { String maxDate = "15012009"; SimpleDateFormat fromFormat = new SimpleDateFormat("ddMMyyyy"); SimpleDateFormat toFormat = new SimpleDateFormat("MMMM dd, yyyy"); Date date = null; try { date = fromFormat.parse(maxDate); } catch (java.text.ParseException e) { e.printStackTrace(); } System.out.println("formated date:-" + toFormat.format(date)); } }