Oihana PHP Arango

dateDayOfWeek.php

Table of Contents

Functions

dateDayOfWeek()  : string
Returns the weekday number of a given date.

Functions

dateDayOfWeek()

Returns the weekday number of a given date.

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

Constructs an AQL expression in the format:

DATE_DAYOFWEEK(date) → dayOfWeek

Returns a number between 0 and 6:

  • 0 – Sunday
  • 1 – Monday
  • 2 – Tuesday
  • 3 – Wednesday
  • 4 – Thursday
  • 5 – Friday
  • 6 – Saturday
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_dayofweek
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL expression returning the weekday number.

On this page

Search results