I want to compare these timestamps and get the one which is the most current. In thiis case Timestamp1 is the answer. I tried to create write code but it is not working.
Problem in this code is If newDate is greater but time is lessor I don't get desired output.