Java Date Create toDate(Calendar date)

Here you can find the source of toDate(Calendar date)

Description

to Date

License

Open Source License

Declaration

public static String toDate(Calendar date) 

Method Source Code

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

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

public class Main {
    private static final SimpleDateFormat sdfDate = new SimpleDateFormat(
            "dd/MM/yyyy");

    public static String toDate(Calendar date) {
        String dateFormatted = "";
        if (date != null) {
            dateFormatted = sdfDate.format(date.getTime());
        }/*from  w ww  .j ava2  s.c om*/
        return dateFormatted;
    }
}

Related

  1. longToDate(long time)
  2. objectToDate(Object Obj)
  3. timeToDate()
  4. toDate()
  5. toDate()
  6. toDate(Date d)
  7. toDate(final Calendar calendar)
  8. toDate(final Date date)
  9. toDate(int date)