Alga.js
  • Introduction
  • Installation
  • Array
    • $.array.insert
    • $.array.update
    • $.array.destroy
    • $.array.select
    • $.array.hidden
    • $.array.search
    • $.array.filter
    • $.array.paginate
    • $.array.sort
    • $.array.setOperations
    • $.array.sum
    • $.array.calculate
  • Object
    • $.object.remove
  • String & Char
    • $string.split
    • $.char.random
  • Number (Int & Float)
    • $.number.calc
    • $.number.currency
  • Date
    • $.date.now
    • $.date.format
    • $.date.parse
    • $.date.days
    • $.date.weeks
    • $.date.months
    • $date.calendar
Powered by GitBook
On this page

Was this helpful?

  1. Date

$date.calendar

Calendar method of date helpers

Calendar method is different from daysInMonth method, calendar method return array only with all the day names and all the date in one month combine, also, include the remaining date from previous month and next month.

$date.calendar(2021, 4)
//=> ['Sunday', ..., '2021-3-28', ..., '2021-4-1', ...,
// '2021-4-30', '2021-5-1']

// UTC version
$date.calendarUTC(2021, 4)
Previous$.date.months

Last updated 4 years ago

Was this helpful?