Oracle
 sql >> Database >  >> RDS >> Oracle

java.time.LocalDate.getDayOfWeek() a java.util.Calendar.get(DAY_OF_WEEK)

Il WeekFields class esiste per questo scopo (usato con LocalDate.get() ):

int sundayBasedDow = date.get(WeekFields.SUNDAY_START.dayOfWeek());