Bad date parsing with Moshi

Viewed 21

I have this crash with Moshi:

I have this date to parse: "Sep 2, 2022 3:33:05 PM"

This is my formatter: SimpleDateFormat("MMM dd, yyyy hh:mm:ss aa") And this is my crash:

com.squareup.moshi.JsonDataException: java.text.ParseException: Unparseable date: "Sep 2, 2022 3:33:05 PM" at $.departureDate

I have already try with SimpleDateFormat("MMM dd, yyyy h:mm:ss aa") / SimpleDateFormat("MMM d, yyyy hh:mm:ss aa") / SimpleDateFormat("MMM d, yyyy h:mm:ss aa") without any success

0 Answers
Related