List of utility methods to do yyyy
String | formattedDate(final String format, final Date tweetPollDate) Format date. SimpleDateFormat formatDate = new SimpleDateFormat("yyyy-MM-dd"); String dateToFormat = formatDate.format(tweetPollDate); return dateToFormat; |
SimpleDateFormat | formatter() formatter return new SimpleDateFormat(DATE_FORMAT); |
String | formatTimeSpan(long time) Format a timespan given in ms as human readable output (using hours as the maximum time unit) StringBuilder res = new StringBuilder(10); long ms = time % 1000; long s = time / 1000; long min = 0; long hr = 0; if (s > 60) { min = s / 60; s = s - (min * 60); ... |
String | formatToEapoDate(Date date) format To Eapo Date try { return new SimpleDateFormat(EAPO_DATE_FORMAT).format(date); } catch (Exception e) { return null; |
String | formatToSqlDate(final Date date) format To Sql Date final DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); final String formattedSqlDate = df.format(date); return formattedSqlDate; |
String | formatToString(String format, long time) format To String if (time == 0) { return ""; return new SimpleDateFormat(format).format(new Date(time)); |
String | formatYmd(Date d) Utility method to format a date in yyyy-MM-dd format return formatDate(d, "yyyy-MM-dd", ""); |
String | formatYMD(Date d) format YMD return getDateFormat(YMD).format(d);
|