function convertDate(date) {
  var dayNum = date.getDay();
  var month = date.getMonth();
  var dayOfMonth = date.getDate();
  var dayChar;
  
  month += 1;
  
  switch (dayNum) {
    case 0 : dayChar = "Sun"; break;
    case 1 : dayChar = "Mon"; break;
    case 2 : dayChar = "Tue"; break;
    case 3 : dayChar = "Wed"; break;
    case 4 : dayChar = "Thur"; break;
    case 5 : dayChar = "Fri"; break;
    case 6 : dayChar = "Sat"; break;
  }
  
  return dayChar + " " + month + "/" + dayOfMonth;
}
// Mainly to convert day number to day of the week
Mainly to convert day number to day of the week
Mainly to convert day number to day of the week
function convertDate(date) {
  var dayNum = date.getDay();
  var month = date.getMonth();
  var dayOfMonth = date.getDate();
  var dayChar;
  month += 1;
  switch (dayNum) {
    case 0 : dayChar = "Sun"; break;
    case 1 : dayChar = "Mon"; break;
    case 2 : dayChar = "Tue"; break;
    case 3 : dayChar = "Wed"; break;
    case 4 : dayChar = "Thur"; break;
    case 5 : dayChar = "Fri"; break;
    case 6 : dayChar = "Sat"; break;
  }
  return dayChar + " " + month + "/" + dayOfMonth;
}
function convertDate ( date ) { var dayNum = date . getDay ( ) ; var month = date . getMonth ( ) ; var dayOfMonth = date . getDate ( ) ; var dayChar ; month += 1 ; switch ( dayNum ) { case 0 : dayChar = "Sun" ; break ; case 1 : dayChar = "Mon" ; break ; case 2 : dayChar = "Tue" ; break ; case 3 : dayChar = "Wed" ; break ; case 4 : dayChar = "Thur" ; break ; case 5 : dayChar = "Fri" ; break ; case 6 : dayChar = "Sat" ; break ; } return dayChar + " " + month + "/" + dayOfMonth ; }
Mainly to convert day number to day of the week
Mainly to convert day number to day of the week