List of utility methods to do yyyy
String | formatarData(String pattern, Date data) formatar Data SimpleDateFormat dateFormat = new SimpleDateFormat(pattern); return dateFormat.format(data); |
String | formatarDataArquivo(Date data) Formata uma data para arquivo no padrao ddMMyyyy. if (data != null) return formatarData(data, FORMATO_DATA_DD_MM_AAAA); else return DATA_NULA_ARQUIVO; |
String | formatAsCassandraDate(Date date) Formats as a date only string SimpleDateFormat parser = new SimpleDateFormat(); parser.setLenient(false); parser.applyPattern(ISO8601_DATE_ZONE); return parser.format(date); |
String | formatAsNumber(Date date) format As Number synchronized (NUMBER_DATE_FORMAT) { return NUMBER_DATE_FORMAT.format(date); |
String | formatBySlashForm(Date aDate) format By Slash Form SimpleDateFormat sdf = new SimpleDateFormat(_8DIGIT_DATE_1); return sdf.format(aDate); |
String | formatDate(Calendar cal, String pattern) format Date return getSDFormat(pattern).format(cal.getTime());
|
String | formatDate(Calendar calendar, String format) format Date SimpleDateFormat sdf = new SimpleDateFormat(format); return sdf.format(calendar.getTime()); |
String | formatDate(Date date, String datePattern) Format date with specified pattern yyyy-MM-dd String ret = null; try { DateFormat dateFormat = new SimpleDateFormat(datePattern); ret = dateFormat.format(date); } catch (Exception e) { e.printStackTrace(); return ret; ... |
String | formatDate(Date date, String format) format Date SimpleDateFormat formatter = new SimpleDateFormat(format); System.out.println(formatter.format(date).toString()); return formatter.format(date).toString(); |
String | formatDate(Date date, String format) format Date if (date == null) { return null; return new SimpleDateFormat(format).format(date); |