Java Day From dayFromDateValue(long x)

Here you can find the source of dayFromDateValue(long x)

Description

Get the day of month from a date value.

License

Open Source License

Parameter

Parameter Description
x the date value

Return

the day (1..31)

Declaration

public static int dayFromDateValue(long x) 

Method Source Code

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

public class Main {
    /**/*w  ww . j a  v a  2s.com*/
     * Get the day of month from a date value.
     *
     * @param x the date value
     * @return the day (1..31)
     */
    public static int dayFromDateValue(long x) {
        return (int) (x & 31);
    }
}

Related

  1. clearDay(long timeInMillis)
  2. CompareDay(Date orgin, Date target)
  3. convertYYMMDDToDate(int y, int m, int d, boolean beginning_of_day)
  4. createInDays(final Date from, final int amount)
  5. day(Integer time)
  6. dayNumberToTimestamp(short dateNumber)
  7. days(int d)
  8. days(int month, int year)
  9. days(int num)