I’m looking for a thread-safe replacement for SimpleDateFormat. parseObject on good old FastDateFormat isn’t implemented and just throws an error. Any ideas? I don’t need anything fancy, just thread-safety and the ability to handle this pattern: "yyyy-MM-dd".
I’m looking for a thread-safe replacement for SimpleDateFormat . parseObject on good old FastDateFormat
Share
If at all possible, use Joda Time. Its date/time parsers are thread-safe, and it’s generally a much nicer API than
Date/Calendar.You can use just its parsers and then convert the return values to
Date, but personally I would recommend using the whole library instead.