Android Calendar Format calendar2string(Calendar calendar, String formatString)

Here you can find the source of calendar2string(Calendar calendar, String formatString)

Description

calendarstring

License

Apache License

Declaration

public static String calendar2string(Calendar calendar,
        String formatString) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

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

public class Main {

    public static String calendar2string(Calendar calendar,
            String formatString) {
        return new SimpleDateFormat(formatString)
                .format(calendar.getTime());
        // http://www.javaroad.jp/java_date3.htm
    }/*from w  ww.  j  av a2s . c  o m*/
}

Related

  1. formateCalDav(Calendar c)
  2. formateCalDavDue(Calendar c)
  3. getUniversalDateStamp(Calendar cal)
  4. getFormattedTime(Context context, Calendar time)
  5. getFormattedTime(Context context, Calendar time)
  6. format(Calendar cal, String format, Locale locale)
  7. getCalendarFromDateString(String dateString, String format, Locale locale)
  8. getFormatedDate(Calendar c, String format)
  9. string2calendar(String s, String formatString)