Java Long Number to Date convertMsToSimpleDate(long Millis)

Here you can find the source of convertMsToSimpleDate(long Millis)

Description

convert Ms To Simple Date

License

Open Source License

Declaration

public static String convertMsToSimpleDate(long Millis) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.DateFormat;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String convertMsToSimpleDate(long Millis) {
        DateFormat formatter = new SimpleDateFormat("MM-dd-yyyy");
        return formatter.format(new Date(Millis));
    }/*from  w  ww .  ja  v  a 2s . c o  m*/
}

Related

  1. convertFromLongToString(SimpleDateFormat fm, long date)
  2. convertHours2DatetimeString(long nodeTaskCompleteTime)
  3. convertMillisecondToDateTimeString(long millisecond, String mark)
  4. convertMMDDYYYYToDate(String date)
  5. convertMsToDate(long millis)
  6. convertUNIXTimeToString(long time)
  7. dateToAPODString(long date)
  8. dateToLong(String date)
  9. dateToPGNDate(long when)