Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Get current week date

 
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..........

 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • 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]
 
Bartender
Posts: 4101
63
Hibernate Fedora Chrome
  • 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
Boost this thread!