public static DateFormat getDateFormatter() {
        SoftReference<DateFormat> ref = dateFormatter.get();
        DateFormat formatter = ref != null ? ref.get() : null;
        if (formatter == null) {
            formatter = new SimpleDateFormat(DATE_FORMAT);
            formatter.setCalendar(new GregorianCalendar(new SimpleTimeZone(0, "GMT")));
            dateFormatter.set(new SoftReference<DateFormat>(formatter));
        }
        return formatter;
    }
public static DateFormat getDateFormatter ( ) { SoftReference < DateFormat > ref = dateFormatter . get ( ) ; DateFormat formatter = ref != null ? ref . get ( ) : null ; if ( formatter == null ) { formatter = new SimpleDateFormat ( DATE_FORMAT ) ; formatter . setCalendar ( new GregorianCalendar ( new SimpleTimeZone ( 0 , "GMT" ) ) ) ; dateFormatter . set ( new SoftReference < DateFormat > ( formatter ) ) ; } return formatter ; }
Obtain a {@link DateFormat} object that can be used within the current thread to format {@link Date} objects.

@return the formatter; never null