Java Date Now getCurrentDate()

Here you can find the source of getCurrentDate()

Description

Return timestamp - that can be used for logging purpose

License

Open Source License

Declaration

public static String getCurrentDate() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    /**//from   w w w  .ja  v  a  2  s . c  om
     * Return timestamp - that can be used for logging purpose
     * 
     * @return
     */
    public static String getCurrentDate() {
        String timestamp = (new SimpleDateFormat("MMddHHmm")).format(new Date());
        return timestamp;
    }
}

Related

  1. getCurrentDate()
  2. getCurrentDate()
  3. getCurrentDate()
  4. getCurrentDate()
  5. GetCurrentDate()
  6. getCurrentDate()
  7. getCurrentDate()
  8. getCurrentDate(boolean WithDelimeter)
  9. getCurrentDate(Date date)