Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Date, DateFormat, Calendar - resource request  RSS feed

 
Sharon Ross
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone recommend a good place to read up on Date, DateFormat, Calendar?
I have a very basic understanding on how to deal with dates and I would like to learn more. The books I have touch on it but the examples don't do a great job and I end up struggling on how to malipulate dates.
I do not have a specific situation right now, just trying to increase my understanding beyond the very simple.
Thanks,
Sharon
 
Michael Fitzmaurice
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sharon
Try the API documentation.. The classes you mention are part of the java.util package, except DateFormat, which can be found in the java.text package.
Its a good idea to download the API docs for whichever version of the JDK you are developing with, so that you can access them quickly when you need to know something. Also saves network traffic (and phone bills if you are using a dial-up modem...) to have them available locally.
Hope this helps
Michael
[ October 27, 2003: Message edited by: Michael Fitzmaurice ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a couple of simple examples, to build on
the basic display:

say you wanted all sundays dates for the year
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!