Java SQL LocalDate getDay(Date date)

Here you can find the source of getDay(Date date)

Description

get Day

License

Apache License

Declaration

public static int getDay(Date date) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.sql.Date;

import java.time.LocalDate;

public class Main {
    public static int getDay(Date date) {
        LocalDate localDate = date.toLocalDate();

        return localDate.getDayOfMonth();
    }/*  w w  w . j av  a 2  s.  c  o  m*/
}

Related

  1. asLocalDate(Date date)
  2. asLocalDate(java.util.Date date, ZoneId zone)
  3. asUtilDate(Object date)
  4. asUtilDate(Object date, ZoneId zone)
  5. convertLocalDateToDatabaseDate(LocalDate localDate)
  6. getLastDate()
  7. getLocalDate()
  8. getLocalDateFromUtilDate(Date input)
  9. getSqlDate(java.util.Date paramDate)