Java Long Number to Date dateToString(long date)

Here you can find the source of dateToString(long date)

Description

date To String

License

Apache License

Declaration

public static String dateToString(long date) 

Method Source Code


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

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

public class Main {
    public static String dateToString(long date) {
        DateFormat df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        return df.format(new Date(date));
    }//from  www .j  av  a 2  s.  c  om
}

Related

  1. dateToLong(String date)
  2. dateToPGNDate(long when)
  3. dateToString(long date)
  4. dateToString(long date)
  5. dateToString(long date)
  6. dateToString(long date, String formate)
  7. dateToStrLong(java.util.Date dateDate, String format)
  8. format(long date)
  9. format(Long date, String pattern)