• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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: 4116
72
Mac TypeScript Chrome Java Linux
  • 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 ?
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic