Java Date parse() MethodLast Updated : 17 Mar 2025 The parse() method of Java date class tries to interpret the string 's' as date and time representation. If this attempt is successful then it will return number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this string argument. This method is deprecated as of JDK version 1.1 and replaced by DateFormat.parse(String s) Syntax:Parameterss - a string to be parsed as a date ReturnThe parse() method returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this string argument. Example 1Output: Milliseconds from date string 's' is : 857932200000 Next TopicJava Util Date |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India