Java Time Now getNowFormatLog()

Here you can find the source of getNowFormatLog()

Description

get Now Format Log

License

Apache License

Declaration

public static String getNowFormatLog() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String getNowFormatLog() {
        String LOG_DATE_FORMAT = "yyyyMMdd HH:mm:ss";
        java.util.Date dd = new java.util.Date();
        java.text.SimpleDateFormat df = null;
        String rtn = "";
        df = new java.text.SimpleDateFormat(LOG_DATE_FORMAT);
        rtn = df.format(dd);/*from  ww w .j a  v a 2s  . c  o  m*/
        return rtn;
    }
}

Related

  1. getNowDateTime(String strScheme)
  2. getNowDateTimeStrConcise()
  3. getNowDayTimeLong()
  4. getNowDefault()
  5. getNowFileFormat()
  6. getNowFormattedDateTimeStr(String pattern)
  7. getNowHour()
  8. getNowInBanFormat()
  9. getNowInputDate()