I wanted to share a Javascript library I've made. It helps you to convert dates like "2009-01-19 13:58" to something like "2 weeks ago", or more precise. There are options for internationalization and return values in various types of strings and arrays.

I wrote a quick guide with an example usage, at my blog.

The library can be found at http://www.labs.mimmin.com/countdown/.

I really hope that this comes in handy to someone! Please leave a comment if you'll be using it, or if you have any questions!

Markus Hedlund