How do I calculate time interval in javascript. I want to create a javascript that will except a DateTime value. Once the date is received, I would like to calculate the differenct between current date and the date parameters received by the function. once that is calculated, I want to use the calculated interval as input parameter to the setTimeout javascript method.
can anyone help me?