jQuery getTime function
@nickf’s correct. However, to be a little more precise: // if you try to print it, it will return something like: // Sat Mar 21 2009 20:13:07 GMT-0400 (Eastern Daylight Time) // This time comes from the user’s machine. var myDate = new Date(); So if you want to display it as mm/dd/yyyy, you would … Read more