Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Get the last Friday of a month in Java

LocalDate now = LocalDate.now();

LocalDate lastFriday = now.with(TemporalAdjusters.lastInMonth(DayOfWeek.FRIDAY));
Comment

Get the last day of a month in Java

LocalDate now = LocalDate.now();

LocalDate lastDay = now.with(TemporalAdjusters.lastDayOfMonth());
Comment

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);
Comment

get last day of month java

Calendar cal = Calendar.getInstance();
cal.set(Calendar.DATE, cal.getActualMaximum(Calendar.DATE));
Date lastDayOfMonth = cal.getTime();
Comment

PREVIOUS NEXT
Code Example
Java :: java arrow function 
Java :: date data type in java 
Java :: file handling in java 
Java :: binary search program in java 
Java :: multiple return values in function java 
Java :: multiple string java 
Java :: java graph 
Java :: java resto 
Java :: java final class 
Java :: java string start with substring 
Java :: java hello world program 
Java :: Java Program to find the perimeter of the circle 
Java :: android get id of view 
Java :: 1.13. programacion orientada a objetos en java 
Java :: get image from resourcestream javafx 
Java :: java forcing user to input int 
Java :: android studio fecth audio from app directory 
Sql :: mysql reset auto increment value 
Sql :: postgresql create table default value timestamp 
Sql :: redshift running queries 
Sql :: uninstall postgresql mac 
Sql :: show host mysql 
Sql :: how to edit table name in mysql 
Sql :: sql server alter table column nullable 
Sql :: postgres add not null to existing column 
Sql :: postgres regex remove special characters 
Sql :: oracle search source code 
Sql :: find names starting with vowels in sql 
Sql :: t-sql remove all non-alphanumeric characters from a string 
Sql :: oracle list dblink 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =