public
Created

  • Download Gist
convertMonthToName.js
JavaScript
1 2 3 4 5
function convertMonthToName( val ) {
var months = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ];
return months[ val-1 ];
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.