Java Long Number to Time convertMillsToDateString(long currentTimeMillis)

Here you can find the source of convertMillsToDateString(long currentTimeMillis)

Description

convert Mills To Date String

License

Apache License

Declaration

public static String convertMillsToDateString(long currentTimeMillis) 

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 convertMillsToDateString(long currentTimeMillis) {
        DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date(currentTimeMillis);

        return formatter.format(date);
    }// w  ww .  ja v  a  2s. c o m
}

Related

  1. convertLongTimeStampToString(long localTimeStamp)
  2. convertLongTimeToText(Long time)
  3. convertLongToTimestampString(String dateFormat, Long millSec)
  4. ConvertLongToTimeString(long lastModified)
  5. convertMillisToHHMMSS(long millis)
  6. convertTime(long difference)
  7. convertTime(long time)
  8. convertTime(Long time)
  9. convertTime(long time)