Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

newbie needs to know how do get todays date

 
Shannon Jaye
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GregorianCalendar gc = new GregorianCalendar();
 
Junilu Lacar
Bartender
Posts: 7594
53
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The API Reference is your friend: http://java.sun.com/j2se/1.4/docs/api/

[ September 19, 2002: Message edited by: Junilu Lacar ]
 
Shannon Jaye
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks TONS! I really apreciate it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic