Java Long Number to Time getSimpleDate(long time)

Here you can find the source of getSimpleDate(long time)

Description

get Simple Date

License

Open Source License

Declaration

public static String getSimpleDate(long time) 

Method Source Code


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

import java.util.Date;
import java.util.TimeZone;

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

public class Main {
    public static String getSimpleDate(long time) {
        DateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy");
        Date date = new Date(time);
        dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
        return dateFormat.format(date);
    }/*ww  w.j ava  2 s. c  om*/
}

Related

  1. getHMSFromMills(long millSec)
  2. getOldCookieDate(long time)
  3. getReadableDate(long longTime)
  4. getServerTime(long offset)
  5. getShortTimeText(Long oldTime)
  6. getSMillon(long time)
  7. getSpeedString(long castTime, long bytes)
  8. getStrDateForLong(long time)
  9. getTextDate(long timeInMs)