Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calendar

 
Linnea Palin
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would it not make more sense to learn about the Java API which has already solved this problem?
 
Linnea Palin
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic