Android Long to Date Convert getDay(long dateTimeMillis)

Here you can find the source of getDay(long dateTimeMillis)

Description

get Day

Declaration

public static int getDay(long dateTimeMillis) 

Method Source Code

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

public class Main {
    public static int getDay(long dateTimeMillis) {
        SimpleDateFormat format = new SimpleDateFormat("dd");
        StringBuilder dateString = new StringBuilder(
                format.format(dateTimeMillis));
        return Integer.parseInt(dateString.toString());
    }/*  w ww  . ja  v  a  2  s  .  com*/
}

Related

  1. getDateTime(long microsecond)
  2. getDateTimeForTimeZone(Long time)
  3. getDateTimeLabel(long time)
  4. getDateTimeString(long dateTime)
  5. getDateWeekLabel(long date)
  6. getDayOfWeek(long timeMillis)
  7. getDefaultDateTimeString(long date, Locale locale)
  8. getDefaultDatetime(long milliseconds)
  9. getElapsedDurationSince(long seconds)