Java SQL Date Create getCurrentDate()

Here you can find the source of getCurrentDate()

Description

get Current Date

License

Open Source License

Declaration

public static Date getCurrentDate() 

Method Source Code


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

import java.sql.Date;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class Main {
    public static Date getCurrentDate() {
        Calendar c = new GregorianCalendar();
        return new Date(c.getTimeInMillis());
    }//from   w  w  w  . jav a2 s. c  o m
}

Related

  1. getCurrentDate()
  2. getCurrentDate()
  3. getCurrentDate()
  4. getCurrentDate()
  5. getCurrentDate()
  6. getCurrentDate()
  7. getCurrentDateStart()
  8. getCurrentDateStr(String strFormat)
  9. getCurrentDateString()