How to subtract date/time in JavaScript? [duplicate]

I have a field at a grid containing date/time and I need to know the difference between that and the current date/time. What could be the best way of doing so?

The dates are stored like "2011-02-07 15:13:06".

5 Answers
5

Leave a Comment