Java Time Format getSysTimeYMDHMS2()

Here you can find the source of getSysTimeYMDHMS2()

Description

get Sys Time YMDHMS

License

Open Source License

Declaration

public static String getSysTimeYMDHMS2() 

Method Source Code


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

public class Main {

    public static String getSysTimeYMDHMS2() {
        return new SimpleDateFormat("yyyyMMddHHmmss").format(new Date(System.currentTimeMillis()));
    }/*from www.  j av a  2  s  . com*/
}

Related

  1. getStrDateByFormat(Date time, String format)
  2. getStrDateTime()
  3. getStringFormatFromDateTime(long pDateTime, String format)
  4. getStringFromTime(Date time, String format)
  5. getSysDateTimeForFileName()
  6. getTime(@Nonnull String format, @Nonnull String date, @Nonnull String tz)
  7. getTime(Date dt, String format)
  8. getTime(Date time, int format, Locale locale)
  9. getTime(DateFormat df)