aspose file tools*
The moose likes Beginning Java and the fly likes Calendar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Calendar" Watch "Calendar" New topic
Author

Calendar

Linnea Palin
Greenhorn

Joined: Oct 02, 2003
Posts: 12
Just for the fun of it i was thinking i'd make a _very_ simple "calendar"... notice _very_ simple
Now, for every "monthname" (january, february and so forth) as well as "daysname" (monday, tuesday.. etc) i dont wanna have to write a option for each one of them.
Is there any automatic thing that knows the order of the month and days so that it could be used in something like

or at least the part?
Thanks in advanced! /Linnea
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 985

Would it not make more sense to learn about the Java API which has already solved this problem?


Please ignore post, I have no idea what I am talking about.
Linnea Palin
Greenhorn

Joined: Oct 02, 2003
Posts: 12
Originally posted by William Barnes:
Would it not make more sense to learn about the Java API which has already solved this problem?

Uhm, then what is Java API? And where can I find it?
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 985

For the API you go here: java.sun.com
And you can start with these if you are interested in dates:
java.util.date
java.text.DateFormat
java.util.Calendar
Linnea Palin
Greenhorn

Joined: Oct 02, 2003
Posts: 12
Thanks!
 
 
subject: Calendar