Here you can find the source of getSimpleDate(long time)
public static String getSimpleDate(long time)
//package com.java2s; //License from project: Open Source License import java.util.Date; import java.util.TimeZone; import java.text.DateFormat; import java.text.SimpleDateFormat; public class Main { public static String getSimpleDate(long time) { DateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy"); Date date = new Date(time); dateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); return dateFormat.format(date); }/*ww w.j ava 2 s. c om*/ }