BIG

UnixTimeStamp to dateTime Sample

 

function convert_unixtimestamp_to_dateTime( unixtimestamp )
{	
	let months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];		
	
	let a = new Date(unixtimestamp * 1000);
	let year = a.getFullYear();
	let month = months[a.getMonth()];
	let date = a.getDate();
	let hour = a.getHours();
	let min = a.getMinutes();
	let sec = a.getSeconds();
	let rtnDateTime = date + ' ' + month + ' ' + year + ' ' + hour + ':' + min + ':' + sec ;

	return rtnDateTime
			
}

 

LIST