I am using JDBC Template to get the values from the DB ,and storing the result in List> as the number of columns returned by my Template is not fixed.
So if there is any date field coming in the output , while setting it into the json variable of List> am getting the date printed as Timestamp in the output , but I need the date to get printed .
Tried using Object mapper and setting the date format using simple date formatter , but while setting into JSON it is again taking as a timestamp.
Since this is an Object that too we 'll begetting it dynamically , so I cant judge when there'll be date coming in my output.
Dates in JavaScript, I usually write a function that recurses through the entire object, looks if the given string is an ISO 8601 timestamp (by using a regular expression) and then I automatically convert all those string toDates.