Java Timestamp toString() MethodThe toString() method of Timestamp class converts the Timespan object in JDBC timestamp escape format. SyntaxParametersNA ReturnsThe toString () method of Timestamp class returns a string object in JDBC timestamp escape format . OverridesThe toString () method of Timestamp class overrides: toString () method in class Date Example 1Output: Timestamp : 2018-09-01 09:01:15.0 New Timespan : 2018-09-01 09:01:15.0 Example 2Output: Timestamp : 2018-09-06 11:13:07.556 Current New Timespan : 2018-09-06 11:13:07.556 Next TopicJava-timestamp-valueof-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