Implement a method that takes two instances of LocalDateTime class and merges them into one object by choosing the largest value of each component for the target object. Consider the following components: years, months, days of months, hours, minutes and seconds.
Output the resulting LocalDateTime object.