examples/modularinputs/github_commits/bin/app/github_commits.js
function getDisplayDate(date) {
        var monthStrings = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];

        date = new Date(date);

        var hours = date.getHours();
        if (hours < 10) {
            hours = "0" + hours.toString();
        }
        var mins = date.getMinutes();
        if (mins < 10) {
            mins = "0" + mins.toString();
        }

        return monthStrings[date.getMonth()] + " " + date.getDate() + ", " + date.getFullYear() +
            " - " + hours + ":" + mins + " " + (date.getUTCHours() < 12 ? "AM" : "PM");
    }
function getDisplayDate(date) {
        var monthStrings = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];

        date = new Date(date);

        var hours = date.getHours();
        if (hours < 10) {
            hours = "0" + hours.toString();
        }
        var mins = date.getMinutes();
        if (mins < 10) {
            mins = "0" + mins.toString();
        }

        return monthStrings[date.getMonth()] + " " + date.getDate() + ", " + date.getFullYear() +
            " - " + hours + ":" + mins + " " + (date.getUTCHours() < 12 ? "AM" : "PM");
    }
function getDisplayDate ( date ) { var monthStrings = [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" ] ; date = new Date ( date ) ; var hours = date . getHours ( ) ; if ( hours < 10 ) { hours = "0" + hours . toString ( ) ; } var mins = date . getMinutes ( ) ; if ( mins < 10 ) { mins = "0" + mins . toString ( ) ; } return monthStrings [ date . getMonth ( ) ] + " " + date . getDate ( ) + ", " + date . getFullYear ( ) + " - " + hours + ":" + mins + " " + ( date . getUTCHours ( ) < 12 ? "AM" : "PM" ) ; }
Create easy to read date format.
Create easy to read date format .