Java Date toString() MethodThe toString() method of Java Date class converts this date object into a String in form "dow mon dd hh:mm:ss zzz yyy". This method overrides toString in class object. Syntax:ParametersNA ReturnIt returns a String representing this date object. Example 1Test it NowOutput: date in String : Tue Sep 25 10:16:42 IST 2018 Next TopicJava Util Date |
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