Java Date Now getCurrentDate(String format)

Here you can find the source of getCurrentDate(String format)

Description

get Current Date

License

Open Source License

Declaration

public static String getCurrentDate(String format) 

Method Source Code

//package com.java2s;
// LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String getCurrentDate(String format) {
        return new SimpleDateFormat(format).format(new Date());

    }/*from   ww  w  .ja v  a 2  s  .c  o m*/
}

Related

  1. getCurrentDate(String format)
  2. getCurrentDate(String format)
  3. getCurrentDate(String format)
  4. getCurrentDate(String format)
  5. getCurrentDate(String format)
  6. getCurrentDate(String format)
  7. getCurrentDate(String formatStr)
  8. getCurrentDate(String pattern)
  9. getCurrentDate(String pattern)