How do I get Jackson to serialize my Joda DateTime object according to a simple pattern (like "dd-MM-yyyy"?
I've tried:
@JsonSerialize(using=DateTimeSerializer.class)
private final DateTime date;
I've tried:
ObjectMapper mapper = new ObjectMapper()
.getSerializationConfig()
.setDateFormat(df);
Thanks!