Java Date Now getCurrentCompactTime()

Here you can find the source of getCurrentCompactTime()

Description

get Current Compact Time

License

Open Source License

Declaration

public static String getCurrentCompactTime() 

Method Source Code


//package com.java2s;
import java.text.*;
import java.util.*;

public class Main {
    private static String CurrentTime;

    public static String getCurrentCompactTime() {
        Date NowDate = new Date();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
        CurrentTime = formatter.format(NowDate);
        return CurrentTime;
    }//ww w .j  a v  a  2s .co m
}

Related

  1. getCurrent()
  2. getCurrentAccurateDateTimeStringForPrint()
  3. getCurrentAgeByBirthdate(String brithday)
  4. getCurrentCacheTime()
  5. getCurrentCalendar()
  6. getCurrentDataInFormat(String pattern)
  7. getCurrentDataTimePrettyFilesystem()
  8. getCurrentDate()
  9. getCurrentDate()