Javascript twitter fetcher date format -
here illustration twitter fetcher website: codepen.io/jasonmayes/pen/ioype
i seek alter date format tweet. @ moment is: posted on 11 oct get: oct 11, 2014 can help me problem?
just alter function dateformatter(date)
in line 145 of javascript file to
function dateformatter(date) { switch(date.getmonth()) { case 0: month="january"; break; case 1: month="february"; break; default: month="october"; } homecoming "posted on "+month+" "+date.getdate()+", "+date.getfullyear(); }
don't forget finish switch
-block.
the dateformatter
function added config seen in line 136.
javascript date twitter
No comments:
Post a Comment