dateISO8601.php
Table of Contents
Functions
- dateISO8601() : string
- Converts a given date to an ISO 8601 formatted string.
Functions
dateISO8601()
Converts a given date to an ISO 8601 formatted string.
dateISO8601([int|string|null $date = null ]) : string
Constructs an AQL expression in the format:
DATE_ISO8601(date)
where date can be a numeric timestamp or an ISO 8601 date-time string.
The return value is a string in ISO 8601 format.
Parameters
- $date : int|string|null = null
-
A numeric timestamp or ISO 8601 date string. If null, uses
DATE_NOW().
Tags
Return values
string —The AQL expression returning the ISO 8601 date string.