Java tutorial
//package com.java2s; import java.util.Date; public class Main { /** * @param date * * @return */ public static String getFormatedDate(Date date) { return date.getYear() + "-" + date.getMonth() + "-" + date.getDay() + " - At " + date.getHours() + ":" + date.getMinutes(); } }