I am currently developing a website that calculates the time elapsed since a specific date. However, when I input the parameters provided by the user and call new Date()
, it displays "Invalid Date".
This is the code snippet I have been using: http://jsfiddle.net/8VkBu/ (please note that the CSS may appear distorted in the small window)
I would like to understand why it is showing "Invalid Date" and what steps I can take to resolve this issue.
Appreciate your assistance, Fjpackard.