Android Long to Date Convert getStringOfLong(long date)

Here you can find the source of getStringOfLong(long date)

Description

get String Of Long

Declaration

public static String getStringOfLong(long date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {
    public static String today;

    public static String getStringOfLong(long date) {
        SimpleDateFormat sdf;//from w w w.  j a va  2  s .  c  o  m
        sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");

        today = sdf.format(date);
        // today = sdf.format(1000);
        return today;
    }
}

Related

  1. getShortDateString(long date, Locale locale)
  2. getShortDateTimeString(long date, Locale locale)
  3. getSimpleDatetime(long milliseconds)
  4. getStandardTime(long timestamp)
  5. getStartTimeOfDay(long timeInLong)
  6. getTimeInterval(long interval)
  7. getTimeLabel(long date)
  8. getTimeLabel(long time)
  9. getTimestampDatetime(long milliseconds)