Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Date.prototype.getMonthName = function() {
var month = ['Jan','Feb','Mar','Apr','May','Jun',
return month[this.getMonth()];
var today = new Date();
var year = today.getFullYear();
var month = today.getMonthName();
var day = today.getDate();
var current = month + ' ' +day + ', '+year;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.