amount_calendar
v1.0.1
Published
Package to assemble the calendar of any month of any year from the year 00 to 9999. Returning an array composed of objects with the day, month, year and day of the week.
Downloads
1
Readme
Amount Calendar
Package to assemble the calendar of any month of any year from the year 00 to 9999.
Example: Calendar of 08/2001
const calendar = amountCalendar(2001, 8)
console.log(calendar)
Returns:
[
{ dayOfWeek: 'wednesday', day: '01', month: '08', year: '2001' },
{ dayOfWeek: 'thursday', day: '02', month: '08', year: '2001' },
{ dayOfWeek: 'friday', day: '03', month: '08', year: '2001' },
{ dayOfWeek: 'saturday', day: '04', month: '08', year: '2001' },
{ dayOfWeek: 'sunday', day: '05', month: '08', year: '2001' },
{ dayOfWeek: 'monday', day: '06', month: '08', year: '2001' },
{ dayOfWeek: 'tuesday', day: '07', month: '08', year: '2001' },
{ dayOfWeek: 'wednesday', day: '08', month: '08', year: '2001' },
{ dayOfWeek: 'thursday', day: '09', month: '08', year: '2001' },
{ dayOfWeek: 'friday', day: '10', month: '08', year: '2001' },
{ dayOfWeek: 'saturday', day: '11', month: '08', year: '2001' },
{ dayOfWeek: 'sunday', day: '12', month: '08', year: '2001' },
{ dayOfWeek: 'monday', day: '13', month: '08', year: '2001' },
{ dayOfWeek: 'tuesday', day: '14', month: '08', year: '2001' },
{ dayOfWeek: 'wednesday', day: '15', month: '08', year: '2001' },
{ dayOfWeek: 'thursday', day: '16', month: '08', year: '2001' },
{ dayOfWeek: 'friday', day: '17', month: '08', year: '2001' },
{ dayOfWeek: 'saturday', day: '18', month: '08', year: '2001' },
{ dayOfWeek: 'sunday', day: '19', month: '08', year: '2001' },
{ dayOfWeek: 'monday', day: '20', month: '08', year: '2001' },
{ dayOfWeek: 'tuesday', day: '21', month: '08', year: '2001' },
{ dayOfWeek: 'wednesday', day: '22', month: '08', year: '2001' },
{ dayOfWeek: 'thursday', day: '23', month: '08', year: '2001' },
{ dayOfWeek: 'friday', day: '24', month: '08', year: '2001' },
{ dayOfWeek: 'saturday', day: '25', month: '08', year: '2001' },
{ dayOfWeek: 'sunday', day: '26', month: '08', year: '2001' },
{ dayOfWeek: 'monday', day: '27', month: '08', year: '2001' },
{ dayOfWeek: 'tuesday', day: '28', month: '08', year: '2001' },
{ dayOfWeek: 'wednesday', day: '29', month: '08', year: '2001' },
{ dayOfWeek: 'thursday', day: '30', month: '08', year: '2001' },
{ dayOfWeek: 'friday', day: '31', month: '08', year: '2001' }
]