Java Date toLocaleString() MethodThe toLocaleString() method of Java Date class converts this date object into a String in implementation-dependent form. This method is deprecated as of JDK version 1.1. It is replaced by DateFormat.format(Date date). Syntax:ParametersNA ReturnThe toLocaleString() returns a String representing this date object by using locale conventions. ExampleTest it NowOutput: Current date to local string : 2 Oct 2018, 18:34:51 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