I am new to JavaScript and have done some research, however I cannot find a straightforward solution to relatively simple problem. I have a following var:
var recordDate = '2016-04-20 17:52:33';
I need to get the difference between now and recordDate
in seconds. What would be the most efficient way to achieve it?