Java Long Number to Date convertDate(Long uTime, SimpleDateFormat dateFormat)

Here you can find the source of convertDate(Long uTime, SimpleDateFormat dateFormat)

Description

convert Date

License

Apache License

Declaration

public static String convertDate(Long uTime, SimpleDateFormat dateFormat) 

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 convertDate(Long uTime, SimpleDateFormat dateFormat) {
        Date date = new Date(uTime);
        return dateFormat.format(date);
    }/*from   ww  w  . ja  v a2s. c  om*/
}

Related

  1. convert(Long[] targets)
  2. convert2long(String date, String format)
  3. convertDate(long datenum)
  4. convertDate(long millisecs)
  5. convertDate(long timestamp)
  6. convertDateFromLong(Long val)
  7. convertDateFromTimeStamp(long timeStamp, String dateFormat)
  8. convertDateToString(long value)
  9. convertDecimal(long l)