Java Date Long Format getLongDateStr(Date sDate)

Here you can find the source of getLongDateStr(Date sDate)

Description

get Long Date Str

License

Apache License

Declaration

public static String getLongDateStr(Date sDate) 

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 getLongDateStr(Date sDate) {
        if (sDate == null)
            return "";
        return new SimpleDateFormat("yyyy-MM-dd kk:mm:ss").format(sDate);
    }/*  ww  w.  ja va 2s.c o m*/
}

Related

  1. getLongDate(Date date)
  2. getLongDateByMidformat(String dateStr)
  3. getLongDateCurr()
  4. getLongDateFormat(Date d)
  5. getLongDateFormatter()
  6. getLongDateString(Date date)
  7. getLongDateString(Date date)
  8. getLongDateString(Date date)
  9. getLongDateString(Date date, boolean includeTime)