Hi folks!
We're searching for information on how to format instances of java.util.Calendar and more general information and coding hints regarding transition from using java.util.Date to java.util.Calendar.
best, phil
Hi folks!
We're searching for information on how to format instances of java.util.Calendar and more general information and coding hints regarding transition from using java.util.Date to java.util.Calendar.
best, phil
My hint would be not to use either Date
or Calendar
. Use Joda Time instead. It's much, much nicer than the built-in classes. JSR-310 will hopefully, eventually bring something Joda-like into the main library, but for the moment Joda is your best bet.
If you must stick to Date
/Calendar
, see java.text.DateFormat
and java.text.SimpleDateFormat
. Remember that they're not thread-safe though :(