@Override
    public Object convert(Class destClass, Object srcObject) {
        LocalDateTime localDateTime = convertToLocalDateTime(srcObject);
        if (localDateTime != null) {
            if (LocalTime.class.isAssignableFrom(destClass)) {
                return localDateTime.toLocalTime();
            } else if (LocalDate.class.isAssignableFrom(destClass)) {
                return localDateTime.toLocalDate();
            }
            return localDateTime;
        }
        return super.convert(destClass, srcObject);
    }
Internal converter to {@link LocalDateTime} type. Only intended for internal use.
<pre>
Supported conversions:
 Any child of TemporalAccessor &#45;&gt; LocalDateTime ()
 String &#45;&gt; LocalDateTime
 Long &#45;&gt; LocalDateTime
 Date &#45;&gt; LocalDateTime
</pre>
core/src/main/java/com/github/dozermapper/core/converters/LocalDateTimeConverter.java