Java Date Now getCurrentDate()

Here you can find the source of getCurrentDate()

Description

get current date

License

Open Source License

Return

yyyyMMddHHmmss

Declaration

public static String getCurrentDate() 

Method Source Code

//package com.java2s;

import java.text.Format;

import java.util.Date;

public class Main {
    /**// ww  w.  j  a  v a 2  s . c  o m
     * get current date
     * 
     * @return yyyyMMddHHmmss
     * @author j00105185
     */
    public static String getCurrentDate() {
        Format formatter = new java.text.SimpleDateFormat("yyyyMMddHHmmss");
        return formatter.format(new Date());
    }
}

Related

  1. getCurrentDate()
  2. getCurrentDate()
  3. getCurrentDate()
  4. getCurrentDate()
  5. getCurrentDate()
  6. getCurrentDate()
  7. getCurrentDate()
  8. getCurrentDate()
  9. getCurrentDate()