Here you can find the source of formatDate(String date)
public static String formatDate(String date)
//package com.java2s; //License from project: Open Source License import java.sql.Date; import java.text.SimpleDateFormat; public class Main { public static String formatDate(String date) { return formatDate(Integer.valueOf(date)); }//from www. j a v a2 s.c om public static String formatDate(int date) { Date d = new Date((long) date); SimpleDateFormat formatter = new SimpleDateFormat("dd/MM hh:mm:ss"); return formatter.format(d); } }