I need some JS code that will take the created_at value from a Twitter feed and display it as xxxx ago.
created_at
I can find examples of creating the xxxx a
xxxx a
Using moment.js without any plugin this is the custom format you need to use to parse the awkward Twitter date properly:
var tweetDate = 'Mon Dec 02 23:45:49 +0000 2013'; moment(tweetDate, 'dd MMM DD HH:mm:ss ZZ YYYY', 'en');