• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Get current week date

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4109
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you checked the Calendar API as suggested by Jesper above. If so what have you got so far ?
 
Bring me the box labeled "thinking cap" ... and then read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic