January 5th, 2013, 01:42 PM
Join Date: Oct 2012
Time spent in forums: 25 m 18 sec
Reputation Power: 0
Independently configure date format for XML/JSON serialization
How do I configure the date format independently for each of my date fields?
For example, let's say I have a CustomerOrder class with more than 1 java.util.Date fields in it.
I need to be able to render like this:
So one of the dates may not care about the hh:mm:ss.
i.e. I cannot format every date the same way.
This is my technology stack:
- Jersey 1.16
- Enunciate 1.26.2
- Spring 3.1.2
- Hibernate 4.1.7
- JPA 2.0.3