Java Calendar to Date toDate(Calendar cal)

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

Description

to Date

License

Open Source License

Parameter

Parameter Description
date a parameter

Declaration

public static Date toDate(Calendar cal) 

Method Source Code

//package com.java2s;

import java.util.Calendar;

import java.util.Date;

public class Main {
    /**/* ww w .jav  a2 s  .c  o  m*/
     * @param date
     * @return
     */
    public static Date toDate(Calendar cal) {
        if (cal != null) {
            return cal.getTime();
        }
        return null;
    }
}

Related

  1. calendarToDate(Calendar c)
  2. calendarToDate(Calendar cal)
  3. calendarToDateId(Calendar cal)
  4. getDate(Calendar cal)
  5. toDate(Calendar calendar)
  6. toDate(Calendar calender)
  7. toDate(Calendar input)
  8. toDate(final Calendar calendar)