timestamp difference

timestamp difference

hey guys im tring to get a difference between 2 timestamps, now here's the first timestamp string i have:
  1. 2000-12-15 21:51:45

and i've tried to use the following to create a timestamp

  1.     today = new Date();
        var dateString = today.format("yyyy-mm-dd hh:mm:ss");
    1.     console.log(dateString);

but its not working =/

basically i'd like to know how many days difference between the timestamp string and todays date.

if anyone can help or know a article on this, that would be great.


thank you