• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get current week date

 
nikunj shingala
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to source code in java to display a date of current week please give me different different example.

i want that

One table and in this table starting with Monday and ending with Sunday and display the date of current week..


Ex :
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
Date Date Date Date Date Date Date

above table is a like time sheet. and it's to be continue..........

 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a number of classes in Java to work with dates and times. You'll want to use class java.util.Calendar for your task.

Have a look at the API documentation of that class and try to find out how to make a calendar for the current week. If you get stuck, please post again and explain exactly where you got stuck.
 
nikunj shingala
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks dear

please give me your email address on that way i send you screen short of that to prefer exactly what i want to.........


 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I'm not going to do your work for you. JavaRanch is not a code mill - we're not here to just give you the solution, but to help you learn Java.

Note that you can add attachments to your JavaRanch posts, see the "Attachments" tab below the editing window. There you can add a file with a screenshot, if you want.

Get to work...
 
nikunj shingala
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where 1,2,3.... there i want to display date of current week
1.JPG
[Thumbnail for 1.JPG]
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the Calendar API as suggested by Jesper above. If so what have you got so far ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic