Here you can find the source of formateDataC(Date date)
public static String formateDataC(Date date)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { public static final String DATE_FORMAT_D = "EEE, d MMM yyyy HH:mm:ss Z"; public static String formateDataC(Date date) { if (date == null) { return null; }/* w ww . jav a 2s. c o m*/ try { SimpleDateFormat format = new SimpleDateFormat(DATE_FORMAT_D, Locale.US); return format.format(date); } catch (Exception e) { } return null; } }