Android Long to Date Convert getUpdateDateStr(long time)

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

Description

get Update Date Str

Declaration

public static String getUpdateDateStr(long time) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static final String UPDATE_TIME_FORMAT = "yyyy.MM.dd HH:mm";

    public static String getUpdateDateStr(long time) {
        SimpleDateFormat dateFormat = new SimpleDateFormat(
                UPDATE_TIME_FORMAT);//from w w w . ja  va 2s  .com
        Date d = new Date(time);
        return dateFormat.format(d);
    }
}

Related

  1. getUTCTimeFromElapsedTime(long elapsedTime)
  2. getUTCTimeFromLocalMillis(long localMillis)
  3. getUTCandRelativeDateFromElapsedTime( long elapsedTime)
  4. getUTCandRelativeDateFromElapsedTime( long elapsedTime)
  5. getUniversalDateStamp(long time)
  6. getUpdateTimeStr(long time)
  7. getYear(long dateTimeMillis)
  8. hrColMin(final long time, final boolean alwaysIncludeHours)
  9. hrColMinColSec(final long time, final boolean alwaysIncludeHours)