Java SQL Date Create getCurrentDate()

Here you can find the source of getCurrentDate()

Description

get Current Date

License

Open Source License

Declaration

public static String getCurrentDate() 

Method Source Code


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

import java.sql.Date;

import java.text.SimpleDateFormat;

public class Main {
    static SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");

    public static String getCurrentDate() {
        Date date = new Date(System.currentTimeMillis());
        return DATE_FORMAT.format(date);
    }/*from   w w w . j  ava2s .  c o  m*/
}

Related

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