Answers for "how to get the first day of the month in calendar java"

3

Get the first day of the current month in Java

LocalDate now = LocalDate.now();

LocalDate firstDay = now.with(TemporalAdjusters.firstDayOfMonth());
Posted by: Guest on January-15-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 "how to get the first day of the month in calendar java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language