Top "Jodatime" questions

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

Converting a date string to a DateTime object using Joda Time library

I have a date as a string in the following format "04/02/2011 20:27:05". I am using Joda-Time library and would like to …

java datetime jodatime
How to format Joda-Time DateTime to only mm/dd/yyyy?

I have a string "11/15/2013 08:00:00", I want to format it to "11/15/2013", what is the correct DateTimeFormatter pattern? I've tried many and …

java jodatime date-format
How to get the current date and time of your timezone in Java?

I have my app hosted in a London Server. I am in Madrid, Spain. So the timezone is -2 hours. …

java timezone jodatime
Number of days between two dates in Joda-Time

How do I find the difference in Days between two Joda-Time DateTime instances? With ‘difference in days’ I mean if …

java date jodatime
Convert LocalDate to LocalDateTime or java.sql.Timestamp

I am using JodaTime 1.6.2. I have a LocalDate that I need to convert to either a (Joda) LocalDateTime, or a …

java timestamp jodatime
Difference in days between two dates in Java?

I need to find the number of days between two dates: one is from a report and one is the …

java jodatime datediff
Convert from java.util.date to JodaTime

I want to convert a java.util.Date to JodaTime so as to carry out subtractions between dates. Is there …

java datetime jodatime
String to LocalDate

How can i convert a string to a LocalDate? I have seen examples like: LocalDate dt = new LocalDate("2005-11-12"); …

java jodatime
How to serialize Joda DateTime with Jackson JSON processor?

How do I get Jackson to serialize my Joda DateTime object according to a simple pattern (like "dd-MM-yyyy")? I've tried: @…

java json jodatime jackson
How to find difference between two Joda-Time DateTimes in minutes

Below is the method I wrote: public List<Map<String, Object>> loadNotYetInEmployee(int shift, Date date, …

java jodatime