April 6, 2009

Playing around with Date and Calendar in Java

Posted in Dev at 10:49 by djn

Dates and Calendars in Java can be a risky business. Read more here.

A rule-of-thumb when comparing dates and calendars (or performing other operations) is to convert it to UTC and then back afterwards.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: