Пример #1
0
  public static String format(Date date) {

    return DateUtil.format(date, "dd/MM/yyyy");
  }
Пример #2
0
  public static String getHora(Date date) {

    return DateUtil.format(date, "HH:mm:ss");
  }
Пример #3
0
  public static String format(Calendar calendar, String format) {

    return DateUtil.format(calendar.getTime(), format);
  }