Top "Jodatime" questions

Joda-Time provides a quality replacement for the Java date and time classes.

In Java, how to get strings of days of week (Sun, Mon, ..., Sat) with system's default Locale (language)

The simplest way: String[] namesOfDays = new String[7] { "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT" }; This method does not use Locale. …

java android calendar jodatime dayofweek
Simplest way to get local milliseconds in a time zone with Joda-Time

Currently, to get milliseconds from start of 1970 in a local time zone, I do long localMillis = dateTime.withZone(timeZone).toLocalDateTime() .…

jodatime
Time: How to get the next friday?

How can I get the next friday with the Joda-Time API. The LocalDate of today is today. It looks to …

java date datetime time jodatime
In Joda-Time, set DateTime to start of month

My API allows library client to pass Date: method(java.util.Date date) Working with Joda-Time, from this date I …

java date jodatime
How can I parse a date including timezone with Joda Time

This snippet of code always parses the date into the current timezone, and not into the timezone in the string …

java datetime timezone jodatime
Get java.util.Date out from Joda-Time DateTime

I have code like this: // old_api(Date date) old_api(calendar.getTime()); Currently, I need to replace Calendar with …

java jodatime
Start of week for locale using Joda-Time

How do you determine which day of the week is considered the “start” according to a given Locale using Joda-Time? …

java calendar jodatime weekday
hibernate 4 and joda-time

are they happily married ? I am using the latest version of hibernate (4) and version 1.3 of joda-time hibernate support, which I …

java hibernate jodatime
Java Joda Time - download, and install - step by step

I've had trouble getting Joda Time to install and work. Most of the instructions around assume a certain amount of …

java jodatime
How to handle jodatime Illegal instant due to time zone offset transition

I want to set up joda DateTime to today at 2 AM (see sample code below). But I'm getting this exception: …

java jodatime