This section simply show the current day in word i.e. the Day of Week for a particular date. Here, you can learn about the way of doing that.
Following program helps you for showing the current day in word. This program gets the day of the week using Calendar.DAY_OF_WEEK i.e. the special field of the Calendar class. It returns the numeric value between 1 to 7.
Here, each and every day is specified for the specific returned value like 1-Sunday, 2-Monday, 3-Tueseday, 4-Wednesday, 5-Thursday, 6-Friday and 7-Saturday. These specification is completed in the switch construct.
Here is the code of the program:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Determining the Day-of-Week for a Particular Date
Post your Comment