Oihana PHP Arango

dateIsoWeek.php

Table of Contents

Functions

dateIsoWeek()  : string
Returns the ISO week number of a given date.

Functions

dateIsoWeek()

Returns the ISO week number of a given date.

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

Constructs an AQL expression in the format:

DATE_ISOWEEK(date)

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

Parameters
$date : int|string|null = null

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

Tags
example
echo dateIsoWeek('2025-10-08T12:34:56Z');
// Produces: DATE_ISOWEEK("2025-10-08T12:34:56Z")

echo dateIsoWeek();
// Produces: DATE_ISOWEEK(DATE_NOW())
see
https://www.arangodb.com/docs/stable/aql/functions-date.html#date_isoweek
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL expression returning the ISO week number.

On this page

Search results