Java SQL Date Get getDate(Calendar pCal)

Here you can find the source of getDate(Calendar pCal)

Description

Get Date from Calendar.

License

Open Source License

Parameter

Parameter Description
pCal a parameter

Declaration

public static Date getDate(Calendar pCal) 

Method Source Code

//package com.java2s;
import java.sql.Date;
import java.util.Calendar;

public class Main {
    /**//from w w  w .  j  a v a2  s. co  m
     * <p>Get Date from Calendar.</p>
     *
     * @param pCal
     */
    public static Date getDate(Calendar pCal) {
        java.util.Date date = pCal.getTime();
        return new java.sql.Date(date.getTime());
    }
}

Related

  1. getDate()
  2. getDate()
  3. getDate()
  4. getDate()
  5. getDate()
  6. getDate(Date date)
  7. getDate(Date value)
  8. getDate(final int year, final int month, final int day)
  9. getDate(final String value)