Java Calendar Format formatCalendar(Calendar calendar)

Here you can find the source of formatCalendar(Calendar calendar)

Description

format Calendar

License

Open Source License

Declaration

public static String formatCalendar(Calendar calendar) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Main {
    public static SimpleDateFormat HEADER_DATE;

    public static String formatCalendar(Calendar calendar) {
        return formatDate(calendar.getTime());
    }/*from ww w. j  a  va2 s .com*/

    public static String formatDate(Date date) {
        return HEADER_DATE.format(date);
    }
}

Related

  1. format(Calendar current)
  2. format(Calendar self, String pattern)
  3. format(final Calendar cal)
  4. formatarData(Calendar data)
  5. formatCalendar(Calendar calendar)
  6. formatCalendar(Calendar calendar)
  7. formatCalendar(Calendar calendar)
  8. formatCalendar(Calendar objCal, String strFormat)
  9. formatCalendarTS(Calendar value)