Here you can find the source of formatDate(Date aDate)
public static String formatDate(Date aDate)
//package com.java2s; // are made available under the terms of the Eclipse Public License v1.0 import java.text.SimpleDateFormat; import java.util.*; public class Main { private static SimpleDateFormat dfA = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.ENGLISH); public static String formatDate(Date aDate) { return dfA.format(aDate); }/* ww w . j a va 2 s . c o m*/ }