Oihana PHP Arango

dateDay.php

Table of Contents

Functions

dateDay()  : string
Returns the day of a given date.

Functions

dateDay()

Returns the day of a given date.

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

Constructs an AQL expression in the format:

DATE_DAY(date)

where date can be a numeric timestamp or an ISO 8601 date string. The result is a number representing the day of the month (1–31).

Parameters
$date : int|string|null = null

Numeric timestamp or ISO 8601 date string. Defaults to DATE_NOW() if null.

Tags
example
echo dateDay('2025-10-08T12:00:00Z');
// Produces: DATE_DAY("2025-10-08T12:00:00Z")

echo dateDay();
// Produces: DATE_DAY(DATE_NOW())
see
https://docs.arangodb.com/devel/aql/functions/date/#date_day
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL expression returning the day as a number.

On this page

Search results