Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Locale; public class Main { public static String getDateDisplay(Calendar cal) { return cal.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.US) + " " + cal.get(Calendar.DATE) + ", " + cal.get(Calendar.YEAR); } }