File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Get current week date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Get current week date" Watch "Get current week date" New topic
Author

Get current week date

nikunj shingala
Ranch Hand

Joined: Jul 20, 2009
Posts: 30
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

Joined: Aug 16, 2005
Posts: 14117
    
  16

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
nikunj shingala
Ranch Hand

Joined: Jul 20, 2009
Posts: 30
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

Joined: Aug 16, 2005
Posts: 14117
    
  16

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

Joined: Jul 20, 2009
Posts: 30
where 1,2,3.... there i want to display date of current week


[Thumbnail for 1.JPG]

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3827

Have you checked the Calendar API as suggested by Jesper above. If so what have you got so far ?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get current week date