Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Parsing the Date in javascript

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 131
    Comment on it

    The Date.parse() method takes a date string, and returns the number of milliseconds since midnight of "November 1, 1997 10:15 AM". if the string is unrecognised or contains illegal date values (e.g. 2015-02-31)

    Syntax

    Date.parse(dateVal)
    

    datestring A string representing a date

    Example:-

    var dateString = "November 1, 1997 10:15 AM";
    var mSec = Date.parse(dateString);
    document.write(mSec);
    
    // Output: 878404500000
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: