Java Long Number to Time convertLongDate(long lDate, String format)

Here you can find the source of convertLongDate(long lDate, String format)

Description

convert Long Date

License

Apache License

Declaration

public static String convertLongDate(long lDate, String format) 

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 convertLongDate(long lDate) {
        return convertLongDate(lDate, "EE - HH:mm");
    }/*from   ww  w.ja v  a  2s  . c om*/

    public static String convertLongDate(long lDate, String format) {
        Date date = new Date(lDate);
        SimpleDateFormat dateFormat = new SimpleDateFormat(format);
        return dateFormat.format(date);
    }
}

Related

  1. addMinTime(long time, String addMin)
  2. calcTime(final long totalTime)
  3. convertLong2String(Long time, String format)
  4. convertLongTimeStampToString(long localTimeStamp)
  5. convertLongTimeToText(Long time)
  6. convertLongToTimestampString(String dateFormat, Long millSec)
  7. ConvertLongToTimeString(long lastModified)