Oihana PHP Arango

dateDaysInMonth.php

Table of Contents

Functions

dateDaysInMonth()  : string
Returns the number of days in the month of a given date.

Functions

dateDaysInMonth()

Returns the number of days in the month of a given date.

dateDaysInMonth([string|int|null $date = null ]) : string

Constructs an AQL expression in the format:

DATE_DAYS_IN_MONTH(date) → daysInMonth

Returns a number between 28 and 31 depending on the month and leap years.

Parameters
$date : string|int|null = null

A numeric timestamp or ISO 8601 date string. If null, uses dateNow().

Tags
see
https://docs.arangodb.com/stable/aql/functions/date/#date_days_in_month
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL expression returning the number of days in the month.

On this page

Search results