Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public final static SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss Z yy", Locale.US); public static String dateToStringAgenda(Date date) { SimpleDateFormat sdf = new SimpleDateFormat("dd/MM - hh:mm a"); String sDate = sdf.format(date); return sDate; } }