final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX"); return dateFormat.format(date);
if (date == null || style == null) return null; return new SimpleDateFormat(style).format(date);
if (date != null) return new SimpleDateFormat("yyyy-MM-dd'T'h:m:ssZ").format(date); else return null;
DateFormat format = new SimpleDateFormat("dd/MM"); return format.format(date);
String result = ""; try { result = getDateFormatter().format(date); } catch (Exception e) { return result;
final SimpleDateFormat DATE_FORMAT_DATE_ONLY = new SimpleDateFormat("dd/MM/yyyy"); return DATE_FORMAT_DATE_ONLY.format(passedDate);
Convierte un java.util.Date a DateFormat.SHORT.
DateFormat formatoFecha = DateFormat.getDateInstance(DateFormat.SHORT); String fecha = formatoFecha.format(date); return fecha.replace("/", "-");
SimpleDateFormat sdf = new SimpleDateFormat(format); try { defaultValue = sdf.format(date); } catch (Exception e) { return defaultValue;
return dateFormat.format(date);