Java Timestamp toLocalDateTime() MethodThe toLocalDateTime() method of Timestamp class converts this Timespan object to a LocalDateTime which represents the same date-time value as this Timestamp. SyntaxParametersNA ReturnsThe toLocalDateTime () method of Timestamp class returns a LocalDateTime object which represents the same date-time value as this Timestamp. Example 1Output: Timestamp : 2018-09-01 09:01:15.0 LocalDateTime : 2018-09-01T09:01:15 Example 2Output: Timestamp : 2018-09-06 11:00:42.26 Current LocalDateTime : 2018-09-06T11:00:42.260 Next TopicJava-timestamp-tostring-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India