Java Date Now getCurrentDate(final String form)

Here you can find the source of getCurrentDate(final String form)

Description

get Current Date

License

Open Source License

Declaration

public static final String getCurrentDate(final String form) 

Method Source Code


//package com.java2s;
import java.text.SimpleDateFormat;

public class Main {

    public static final String getCurrentDate(final String form) {
        SimpleDateFormat formatter = new SimpleDateFormat(form);
        java.util.Date currentDate = new java.util.Date();
        return formatter.format(currentDate);
    }//from w ww. jav a2 s.  co  m
}

Related

  1. getCurrentDate()
  2. getCurrentDate()
  3. getCurrentDate()
  4. getCurrentDate(boolean WithDelimeter)
  5. getCurrentDate(Date date)
  6. getCurrentDate(final String FORMAT)
  7. getCurrentDate(String format)
  8. getCurrentDate(String format)
  9. getCurrentDate(String format)