GoalModelEditor/FrontEnd/public/js/dashboard.js
/**
 * Helper function to convert database date String to our required format Month Day, Year
 *
 * @param {Date} date
 * @return {String} str
 */
Helper function to convert database date String to our required format Month Day, Year
@param {Date} date
@return {String} str
Helper function to convert database date String to our required format Month Day Year @param { Date } date @return { String } str
function parseDateFormat(date) {
    let month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
        "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"][date.getMonth()];
    let str = month + " " + date.getDate() + ", " + date.getFullYear();
    return str;
}
function parseDateFormat ( date ) { let month = [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" ] [ date . getMonth ( ) ] ; let str = month + " " + date . getDate ( ) + ", " + date . getFullYear ( ) ; return str ; }
Helper function to convert database date String to our required format Month Day, Year
 @param {Date} date
 @return {String} str
Helper function to convert database date String to our required format Month Day Year @param { Date } date @return { String } str