Change date format in DTO JSON on returning through @ResponseBody
I simply want to change the date format in my DTO returned by @ResponseBody My question is not this question as my output is a JSON List and I am printing it on Postman instead of using a view with JS and other UI features. It's not this one as well because I am returning a JSON List, not just the Date object. It is an extension of this one , but I don't think Orika mapper is the culprit. I am getting the timestamp value of date on returning the List using @ResponseBody . My custom code- @RequestMapping(value = "/my/report", method = RequestMethod.POST) @ResponseBody public List<OrderWsDTO>