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
Return values
string —The AQL expression returning the number of days in the month.