Java Date Create toDate(long time)

Here you can find the source of toDate(long time)

Description

Convert friendly date time format

License

LGPL

Parameter

Parameter Description
time a parameter

Return

String datetime format

Declaration

public static String toDate(long time) 

Method Source Code


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

import java.text.SimpleDateFormat;

public class Main {
    private static final SimpleDateFormat formatDateTime = new SimpleDateFormat();

    /**//from w  w w .j  ava2  s.  co m
     * Convert friendly date time format
     * @param time
     * @return String datetime format
     */
    public static String toDate(long time) {
        return formatDateTime.format(time);
    }
}

Related

  1. toDate(final Date date)
  2. toDate(int date)
  3. toDate(int flag, Date... date)
  4. toDate(long lastModified)
  5. toDate(long segundos)
  6. toDate(long time)
  7. toDate(Object o)
  8. ToDate(Object o)
  9. toDate(Object object)