Android Day Get getDay(long dateTimeMillis)

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

Description

get Day

License

Open Source License

Declaration

public static int getDay(long dateTimeMillis) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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());
    }/*from   w  w  w.j a  v a2s  .c  o  m*/
}

Related

  1. getDayStartTime(long time)
  2. lastDay(Date date)
  3. firstDay(Date date)
  4. getDaySelect(String selectName, String value, boolean hasBlank)
  5. getDaySelect(String selectName, String value, boolean hasBlank, String js)
  6. getCurrentDay()
  7. getSmartDateString(long time, String extString, String zeroDayString)