Hi

If I use:
Java Code:
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="dd-MM-yyyy")
    Date paymentDate;
I get

Java Code:
paymentDate	"08-05-0037"
(which is wrong)


If I use
Java Code:
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    Date paymentDate;
I get
Java Code:
paymentDate	"2016-12-01"
which is correct. what do I need to do to make "dd-MM-yyyy" show corrrect date?