Retrieve the dates of special holidays or occasions
var hols = require('holiday-dates'); var easter = hols.easter(2015); // methods return an object with year, month and day integers console.log(easter.year); // year is a full 4 digit year console.log(easter.month); // month is in range 1-12 console.log(easter.day); // day 1 is the first day in the month
// get native js date object as if from midnight UTC console.log(easter.toUTCDate()); // get native js date object as if from midnight in the current time zone console.log(easter.toLocalDate());
Currently supported occasions
Please feel free to contribute any other special dates for which an algorithm can be written.