Android Long to Date Convert getDateLabel(long date)

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

Description

get Date Label

License

Open Source License

Declaration

public static String getDateLabel(long date) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

public class Main {
    private static String DATE_FORMAT = "yyyy-MM-dd";

    public static String getDateLabel(long date) {
        SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
        return sdf.format(date);
    }/* www . j  a  v a2  s . c om*/
}

Related

  1. formatTime(final long time)
  2. formatToCountdown(long millis)
  3. fullFromUtc(long milliseconds)
  4. generateFileName(long sysTime)
  5. getDateForMillis(final long tick)
  6. getDateString(long date, int style, Locale locale)
  7. getDateString(long time)
  8. getDateTime(long microsecond)
  9. getDateTime(long microsecond)