Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String getPrettyDate(Calendar c) { if (c != null) { SimpleDateFormat dateFormatter = new SimpleDateFormat("EEE, MMM d"); return dateFormatter.format(c.getTime()); } else { return ""; } } }