Java Long Number to Date convertDateFromLong(Long val)

Here you can find the source of convertDateFromLong(Long val)

Description

convert Date From Long

License

LGPL

Declaration

public static String convertDateFromLong(Long val) 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String convertDateFromLong(Long val) {
        Date date = new Date(val);
        SimpleDateFormat df2 = new SimpleDateFormat("dd/MM/yy");
        String dateText = df2.format(date);
        return dateText;
    }/*from  w  ww .j a  v  a 2  s .  c  o  m*/
}

Related

  1. convert2long(String date, String format)
  2. convertDate(long datenum)
  3. convertDate(long millisecs)
  4. convertDate(long timestamp)
  5. convertDate(Long uTime, SimpleDateFormat dateFormat)
  6. convertDateFromTimeStamp(long timeStamp, String dateFormat)
  7. convertDateToString(long value)
  8. convertDecimal(long l)
  9. converteDataStr2Long(String str)