Java Time Now getNowDateTimeStrConcise()

Here you can find the source of getNowDateTimeStrConcise()

Description

get Now Date Time Str Concise

License

Apache License

Declaration

public static String getNowDateTimeStrConcise() 

Method Source Code


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

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static String getNowDateTimeStrConcise() {

        return getDateTimeStrConcise(new Date());
    }/*from   w w w .j a  va2s .c o m*/

    public static String getDateTimeStrConcise(Date d) {
        if (d == null)
            return "";

        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSSZ");

        String str = sdf.format(d);
        return str;
    }
}

Related

  1. getNowDateTime()
  2. getNowDateTime()
  3. getNowDateTime()
  4. getNowDateTime()
  5. getNowDateTime(String strScheme)
  6. getNowDayTimeLong()
  7. getNowDefault()
  8. getNowFileFormat()
  9. getNowFormatLog()