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 also tried:
ObjectMapper mapper = new ObjectMapper()
.getSerializationConfig()
.setDateFormat(df);
Thanks!