Android Time Get getDateLabel(long time)

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

Description

get Date Label

Declaration

private static String getDateLabel(long time) 

Method Source Code

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import android.content.Context;
import android.os.SystemClock;
import android.text.TextUtils;
import com.ringcentral.kendo.R;

public class Main{
    private static String getDateLabel(long time) {
        SimpleDateFormat sdf = new SimpleDateFormat(
                SettingsFormatUtils.getDateFormat());
        return sdf.format(new Date(time));
    }//from   w w w .ja v  a2  s . c  om
}

Related

  1. getCurTimeByFormat(String format)
  2. getCurTimeByFormat(String format)
  3. getCurrentTime(String dateFormat)
  4. getDate(String time)
  5. getDate(String time)
  6. getDateTime()
  7. getDateTime(String format)
  8. getDateTimeFromCal(Calendar cal)
  9. getTimeStr(Date date)