a1exlism
4/21/2017 - 4:43 PM

function_UTC_to_MMDDYY.js

function toMdy(date) {
	date = new Date(date);
	var year = date.getFullYear();
	var month = (1 + date.getMonth()).toString();
	month = month.length > 1 ? month : '0' + month;
	var day = date.getDate().toString();
	day = day.length > 1 ? day : '0' + day;
	return month + '/' + day + '/' + year;
}