Dates
In this topic, I will just present a few classes that do a lot of different things with dates. You can see what kinds of classes, methods, and fields are available to you, and hopefully you can just copy and paste methods here with little modification into your own projects.
Dates.java
package net.dates; import java.util.*; import java.text.*; /** This class contains a number of useful methods that make it convenient to do common operations involving dates. It uses java.util.Calendar and java.util.GregorianCalendar to do so. <p> Hopefully you can paste this directly into your own utilities library. <p> Just modify the classes to accept calendar objects and return the int values. I didn't do this here so that it would make the code easier ...
Get Java Garage now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.