Javascript Pretty Date

John wrote a superb JS function to convert a datetime to a “time ago” format. Yes indeed the serverside can do this for you but it might come in handy when – for example- parsing an RSS feed (over XHR) through JS :)


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>