Android Long to Date Convert getDateString(long date, int style, Locale locale)

Here you can find the source of getDateString(long date, int style, Locale locale)

Description

get Date String

Declaration

public static String getDateString(long date, int style, Locale locale) 

Method Source Code

//package com.java2s;
import java.text.DateFormat;

import java.util.Locale;

public class Main {
    public static String getDateString(long date, int style, Locale locale) {
        DateFormat formatter = DateFormat.getDateInstance(style, locale);
        return formatter.format(date);
    }//w ww  .  j a  v  a  2s  .  c o m
}

Related

  1. formatToCountdown(long millis)
  2. fullFromUtc(long milliseconds)
  3. generateFileName(long sysTime)
  4. getDateForMillis(final long tick)
  5. getDateLabel(long date)
  6. getDateString(long time)
  7. getDateTime(long microsecond)
  8. getDateTime(long microsecond)
  9. getDateTimeForTimeZone(Long time)