private LocalDateTime convertToLocalDateTime(Object srcObject) {
        Class<?> srcObjectClass = srcObject.getClass();

        if (Date.class.isAssignableFrom(srcObjectClass)) {
            Instant instant = ((Date)srcObject).toInstant();
            return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
        } else if (Instant.class.isAssignableFrom(srcObjectClass)) {
            return LocalDateTime.ofInstant((Instant)srcObject, ZoneId.systemDefault());
        } else if (Long.class.isAssignableFrom(srcObjectClass)) {
            Instant instant = Instant.ofEpochMilli((Long)srcObject);
            return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
        } else {
            return null;
        }
    }
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