Here you can find the source of parseDate(Date date)
public static String parseDate(Date date)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm"); public static String parseDate(Date date) { return sdf.format(date); }/*from w w w . j a v a2 s. c o m*/ }