Java Month create from SQL Date
import java.sql.Date; import java.time.LocalDate; import java.time.Month; public class Main { public static Month getMonth(java.sql.Date date) { LocalDate localDate = date.toLocalDate(); return localDate.getMonth(); }//from w w w .j av a 2s . c om }