File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
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: 4419
    
    5

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]
Shannon Jaye
Greenhorn

Joined: Sep 19, 2002
Posts: 2
Thanks TONS! I really apreciate it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie needs to know how do get todays date
 
Similar Threads
Changing the date format
i want to get the month of a particular date
Help on date and Calendar Object
Substracting days in java
JSP calendar problem