Is their any inbuilt method to display date as DD MMM YYYY (08 Jan 2018) format in javascript Currently I am using the below code for date format.
$('#timeTable th:not(:first-child)').each(function(){
if($(this).attr('Id') === 'totalHours') return;
$(this).text(dateObj.getDate()+'/'+dateObj.getMonth()+'/'+dateObj.getFullYear());
dateObj.setDate(dateObj.getDate() + 1);
});