script.js
//Function to Convert Unix time to date
Function to Convert Unix time to date
Function to Convert Unix time to date
function convertUnixToDate(unix){
    var a = new Date(unix * 1000);
    var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
    var year = a.getFullYear();
    var month = months[a.getMonth()];
    var date = a.getDate();
    var todayDate = date + ' ' + month + ' ' + year;
    return todayDate;
}
function convertUnixToDate ( unix ) { var a = new Date ( unix * 1000 ) ; var months = [ 'Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sep' , 'Oct' , 'Nov' , 'Dec' ] ; var year = a . getFullYear ( ) ; var month = months [ a . getMonth ( ) ] ; var date = a . getDate ( ) ; var todayDate = date + ' ' + month + ' ' + year ; return todayDate ; }
Function to Convert Unix time to date
Function to Convert Unix time to date