The date displayed in milliseconds as 15463176000000. We’re going to discuss few methods. function doParsing() { Negative milliseconds value indicates go back to the date from 1 January 1970. JavaScript allows the parse method with a string containing date and time (hours and minutes). . How to convert a string into number in PHP? We can parse any string value format with DD-MM-YYYY HH:MM:SS or MM-DD-YYYY HH:MM:SS or MMM DD, YYYY HH:MM:SS to the corresponding date and time from any format like UTC, MST, etc. Please write to us at contribute@geeksforgeeks.org to report any issue with the above content. It returns a number, from 0 to 11, representing the month.