I am working on spring boot for creating a REST application. And I have a DTO as shown below:
public class Subject {
private String uid;
private String number;
private String initials;
private Date dateOfBirth;
And I use Spring-Hateos and the reurn type of my controller is ResponseEntity<Resources<Resource<Subject>>>
. I need the date to be displayed in the "yyyy-mm-dd" format.