Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java first day of week

LocalDate now = LocalDate.now();

LocalDate firstDayOfWeek = now.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY));
Comment

java get first day of the week

private static Date firstDayOfWeek(Date date) {
   Calendar calendar = Calendar.getInstance();
   calendar.setTime(date);
   calendar.set(Calendar.DAY_OF_WEEK, 1);
   return calendar.getTime();
}
Comment

PREVIOUS NEXT
Code Example
Java :: java how to find the largest number in an arraylist 
Java :: java create file and parent directories 
Java :: Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema 
Java :: how to wait in java 
Java :: expected exception junit 
Java :: java game 
Java :: java find longest string in list 
Java :: android change checkbox color 
Java :: event api spigot 
Java :: java join list as string 
Java :: highlight selected item in recyclerview android 
Java :: android use attribute color programmatically 
Java :: get first letter of string in array java 
Java :: java map not null 
Java :: Fast Lookup of Java 
Java :: make frame visible java 
Java :: java random word from list 
Java :: how to read file from assets folder in android 
Java :: Java tree from star 
Java :: parse string to int java 
Java :: java indexof array 
Java :: swing button 
Java :: java restart program 
Java :: java get number of threads 
Java :: localdate java 
Java :: hello world in different programming languages 
Java :: Caused by: java.lang.RuntimeException: No installed build tools found. Install the Android build tools version 19.1.0 or higher. 
Java :: string reverse in java 
Java :: set ImageView size programmatically android 
Java :: square root of a number in java without sqrt 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =