Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

eric hughes
eric hughes
12,345 Points

I need help with a day of the week calculator for java

I am trying to write a program that calculates the day of the week while using the gregorian calendar

2 Answers

Kate Hoferkamp
Kate Hoferkamp
5,205 Points

I'm not totally sure what the object of the program you are trying to create is, maybe you can elaborate somewhat. Are you just trying to get the current day and do something or get any day ever?

Anyways, here is the documentation for the class you want to use for the calendar: http://docs.oracle.com/javase/7/docs/api/java/util/GregorianCalendar.html

or

http://developer.android.com/reference/java/util/GregorianCalendar.html

Both are the same things, some is just the oracle docs and one is androids. Just a preference thing.

eric hughes
eric hughes
12,345 Points

thanks alot, it was a parentheses issue with my formula, we are submitting it on the 26th thanks !