Answers for "get days of month jva"

2

java get number of days in month

// for example, february of 2000 
YearMonth.of(2000, 2).lengthOfMonth();
Posted by: Guest on October-28-2021
2

get day from date month year java

Calendar cal = Calendar.getInstance();
cal.set(year,month-1,day);
int nd = cal.get(Calendar.DAY_OF_WEEK);
Posted by: Guest on May-18-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language