GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — JavaScript Date parse() Method - GeeksforGeeks JavaScript Date parse() MethodLast Updated : 11 Jul, 2025 The JavaScript Syntax:Date.parse(datestring);Parameters:This method accepts a single parameter:
Return Values:
Example 1: Parsing Date String to Milliseconds The code takes a date string "February 18, 2018, 12:30 PM" and parses it using the
Output 1518957000000 Example 2: Parsing Invalid Date String The code attempts to parse an invalid date string "February 48, 2018 12:30 PM" using the
Output NaN Note: Once we get the millisecond count between two dates, we can easily find the number of hours, days, months, years, etc by simple maths calculation. Supported Browsers:The browsers supported by the JavaScript Date parse() method are listed below: Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |