So I'm using Jackson to read JSON data. I then am creating a Java object. Then from that Java object I'm reading it and inserting it into a Cassandra table. I ran into issues. I am receiving the dates as such...
"demandDepositAccountOpenDate":"9999-01-01T05:00:00.000+0000"
That's the result of a JSONNode.get function
I need to insert that date into the Cassandra table as 9999-01-01 (this would be a yyyy-MM-dd format)
I don't know what type of variable to make my date field in the Java object. Date? LocalDate? I'm having difficulties. I'm trying DateTimeFormater. SimpleDateFormat. Nothing is working. I tried making the date fields in my java object as Strings but that won't work. Just looking for a clean simple solution.