The setWeekDate() method of java.util.Calendar class sets the current date with specified integer value as the parameter. These values are the weekYear, weekOfYear, and dayOfWeek.
weekYear - the week year
weekOfYear - the week number based on weekYear
dayOfWeek - the day of the week value:
NA
NA
Output:
Time Today:Sat Aug 18 10:57:54 PDT 2018 Now Time Today:Fri Jun 07 10:57:54 PDT 1996
Output:
Time Today(mycal):Sat Aug 18 11:21:42 PDT 2018 Time Today (mycal2):Sat Aug 18 11:21:42 PDT 2018
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India