Tuesday, October 3, 2017

Display UTC Date in User's Local Time with .toString()

$('.publishedDateString').each(function(){
$(this).text(new Date($(this).text()).toString());
});

No comments: