Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Locale; public class Main { public static String getCalendarString(Calendar dateTime) { // example: 24 May 2014, 10:13 PM SimpleDateFormat format = new SimpleDateFormat("d MMMM yyyy, h:mm a", Locale.getDefault()); return format.format(dateTime.getTime()); } }