JSFiddle - React, Tailwind, and code Playground
JavaScript
end_date = $.datepicker.formatDate('D M dd yy', new Date('2012-03-21T00:00:00'));
alert(end_date);
end_date = $.datepicker.formatDate('D M dd yy', new Date('2012-03-21T00:00:00'));
alert(end_date);