SyntaxFix
Write A Post
Hire A Developer
Questions
To add characters such as T and Z in your date
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'") private Date currentTime;
output
{ "currentTime": "2019-12-11T11:40:49Z" }