This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes newbie  needs to know how do get todays date Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "newbie  needs to know how do get todays date" Watch "newbie  needs to know how do get todays date" New topic
Author

newbie needs to know how do get todays date

Shannon Jaye
Greenhorn

Joined: Sep 19, 2002
Posts: 2
I am a total beginner, and I have to get today's date and todays DAY
I need to grab a picture of the week.
SO i have the case statement worked out:

I am not sure if the GregorianCalendar.Saturday sytax is correct...
SO in conclusion.. how do I get todays date, and how do I get the DAY of week?
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
GregorianCalendar gc = new GregorianCalendar();


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4118
    
    2

The API Reference is your friend: http://java.sun.com/j2se/1.4/docs/api/

[ September 19, 2002: Message edited by: Junilu Lacar ]

Junilu - [How to Ask Questions] [How to Answer Questions] [MiH]
Shannon Jaye
Greenhorn

Joined: Sep 19, 2002
Posts: 2
Thanks TONS! I really apreciate it
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: newbie needs to know how do get todays date
 
Similar Threads
Help on date and Calendar Object
JSP calendar problem
Changing the date format
i want to get the month of a particular date
Substracting days in java