Java Long Number to Date formatDate(long date)

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

Description

format Date

License

Apache License

Declaration

public static String formatDate(long date) 

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 formatDate(long date) {
        SimpleDateFormat sdf = new SimpleDateFormat("mm:ss");
        return sdf.format(new Date(date));
    }/* w  w w . j  av a2s.c om*/
}

Related

  1. formatDate(long date)
  2. formatDate(long date)
  3. formatDate(long date)
  4. formatDate(long date)
  5. formatDate(long date)
  6. formatDate(Long date)
  7. formatDate(Long date, String fmt)
  8. formatDate(long date, String format)
  9. formatDate(long date, String langStr)