Here you can find the source of calendarDateToStrFormatddMMMyy(final Calendar cal)
public static String calendarDateToStrFormatddMMMyy(final Calendar cal)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String calendarDateToStrFormatddMMMyy(final Calendar cal) { final SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yy"); return dateFormat.format(cal.getTime()); }//from w w w.ja v a 2 s .c o m }