I have searched online but couldn't really find the way to do it as I hope.
My data look like "20201005114527", "20201002173838" .......
and would like to convert them into LocalDateTime.
It will be converted into json again afterwards.
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "xxx/xxx")
private LocalDateTime xxxxxDate;
But I'm just confused of converting those "number-only strings" into LocalDateTime.
Use the format mask
yyyyMMddHHmmss
?