Java Calendar Format format(Calendar calendar)

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

Description

format

License

Apache License

Declaration

public static String format(Calendar calendar) 

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 format(Calendar calendar) {
        return new SimpleDateFormat("dd-MM-yyyy").format(calendar.getTime());
    }//from   w ww . j a  v a2  s .  co  m
}

Related

  1. calToString(Calendar cal)
  2. format(Calendar cal)
  3. format(Calendar cal)
  4. format(Calendar cal, String format)
  5. format(Calendar cal, String pattern)
  6. format(Calendar calendar)
  7. format(Calendar calendar)
  8. format(Calendar calendar)
  9. format(Calendar calendar)