Posts by Lucas Almeida • 1 point
2 posts
-
0
votes1
answer180
viewsA: Google Gson Problems: Unparseable date: "Apr 19, 1991"
Well, I managed to get the class implemented that way: public class DateDeserializer implements JsonDeserializer<Date> { private static final String[] DATE_FORMATS = new String[]{ "MMM dd,…
-
0
votes1
answer180
viewsQ: Google Gson Problems: Unparseable date: "Apr 19, 1991"
I work with Google Gson to persist and recover Java objects. I use this code to create and format Gson, with the aim of preplanning it to receive certain date formats, which come from forms and the…