Java Long Number to Date formatDate(final long time)

Here you can find the source of formatDate(final long time)

Description

format Date

License

Open Source License

Declaration

public static String formatDate(final long time) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static final String H_DATE_FROMAT = "yyyyMMdd";

    public static String formatDate(final long time) {
        return new SimpleDateFormat(H_DATE_FROMAT).format(new Date(time));
    }//from ww  w. jav  a  2 s .co  m
}

Related

  1. format(Long dateMs, String type)
  2. format(Long dateTmie, String formate)
  3. format(long time, SimpleDateFormat format)
  4. formatDate(final long date)
  5. formatDate(final long ticks, final SimpleDateFormat format)
  6. formatDate(final long timestamp)
  7. formatDate(long absTime)
  8. formatDate(long d)
  9. formatDate(long d)