How to get day of week in Java?

Ads
 

How to get day of week in Java?

Hi,

How to get day of week in Java?

Thanks

View Answers

April 16, 2017 at 8:48 PM

Hi,

Calendar class is very useful in Java. You can use this class for getting the day of the week.

Here is sample code:

int weekday = calendar.get(Calendar.DAY_OF_WEEK);

Check examples at Find the Day of the Week.

Thanks

Ads









Related Tutorials/Questions & Answers:
How to get day of week in Java?
Get first day of week
Advertisements
How to get the Day name
How to get day from date in SQL?
How to get day from date in Java using Calendar?
Find Day of Month
Find the Day of the Week
Java get Next Day
difference between java5 and java6 - Java Beginners
Java2
Determining the Day-of-Week for a Particular Date
about java1
How to learn Java programming in a week?
Week Days Format Example
Javah
javaa swings - IDE Questions
About Java2
MySQL By Week
How to change day to night scene, change day to night scene, day to night scene
Java Get Method
How to design a day and night process, design a day and night process, day and night process
Javap Tool application
Current Date iPhone SDK
Get Last Day of The Month
javax. servlet.Servlet Exception: Initialization failed, Unable to get DB connection - JSP-Servlet
Artifacts of javax
javas - JSP-Servlet
javab - Java Beginners
How to get Button Id ?
how to get radio value
Implementation of Day Class

Ads