Skip to content

Instantly share code, notes, and snippets.

@lexdene
Last active August 29, 2015 14:04
Show Gist options
  • Save lexdene/1a503201c3eaaa90cb66 to your computer and use it in GitHub Desktop.
Save lexdene/1a503201c3eaaa90cb66 to your computer and use it in GitHub Desktop.
calc 823
var i,j;
var result = '';
for(i=2000; i<2100; ++i){
[1, 3, 5, 7, 8, 10, 12].forEach(function(j){
d = new Date(i, j - 1);
if(d.getDay() == 5){
result += d.getFullYear() + '年' + (d.getMonth() + 1) + '月 ';
}
});
}
console.log(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment